Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
- feature "Login" do
- scenario "should login the user" do
- visit "/login"
- page.should have_css("form#login")
- within "form#login" do
- fill_in "user_email", :with => "bob@aol.de"
- fill_in "user_password", :with => "ficken"
- end
- click_button "user_submit"
- current_path.should == root_path
- end
- end
Add Comment
Please, Sign In to add comment