此功能工作了一点,然后停止工作。
Background:
Given a user is logged in
Then I should see "Signed in successfully."
和
Given /^a user is logged in$/ do
@user = FactoryGirl.create(:user)
@user.confirm!
visit new_user_session_path
fill_in 'Email', :with => @user.email
fill_in 'Password', :with => @user.password
click_on 'Sign in'
end
Then /^I should see "(.*?)"$/ do |message|
page.should have_content(message)
end
Given a user is logged
通过但因Then I should see "Signed in successfully."
错误而失败expected there to be content "Signed in successfully."
。它停留在登录页面中。
任何人都知道可能是什么问题?