Patching a couple of borked specs

This commit is contained in:
Will Marshall
2014-04-24 09:52:29 +10:00
parent b4da348e36
commit 3ed569b24a
2 changed files with 5 additions and 2 deletions

View File

@@ -237,7 +237,9 @@ feature %q{
visit '/admin/products/bulk_edit'
find("a", text: "New Product").click
#save_screenshot "/Users/willmarshall/Desktop/foo.png"
#save_and_open_page
find("a", text: "NEW PRODUCT").click
page.should have_content 'NEW PRODUCT'

View File

@@ -5,7 +5,8 @@ describe CheckoutHelper do
it "generates html for validated inputs" do
helper.should_receive(:render).with(
partial: "shared/validated_input",
locals: {name: "test", path: "foo", required: true, type: :email}
locals: {name: "test", path: "foo",
attributes: {:required=>true, :type=>:email, :name=>"foo", :id=>"foo", "ng-model"=>"foo", "ng-class"=>"{error: !fieldValid('foo')}"}}
)
helper.validated_input("test", "foo", type: :email)