click_link ‘Sign up’ fill_in ‘Email’, with: ‘[email protected]' fill_in ‘Password’, with: ‘mysecret’ click_button ‘Sign up’ expect(page).to have_content(‘Sign out’) # or page.should have_content(‘Sign out’) end where do we need to be?
click_link ‘Sign up’ fill_in ‘Email’, with: ‘[email protected]' fill_in ‘Password’, with: ‘mysecret’ click_button ‘Sign up’ expect(page).to have_content(‘Sign out’) # or page.should have_content(‘Sign out’) end what do we need to do?
:update_attributes => false end it "maps the subscription errors to the card" do Exchequer::ErrorMapper.should_receive(:map). with(subscription, :to => card). and_return(true) Exchequer::Subscription.update 4853, :card => card end end
:update_attributes => false end it "maps the subscription errors to the card" do Exchequer::ErrorMapper.should_receive(:map). with(subscription, :to => card). and_return(true) Exchequer::Subscription.update 4853, :card => card end end stubbing a method