1
我有一个http://github.com/rails3book/ticketee应用程序,当使用bundle exec cucumber features/signing_up.feature
运行功能时,目前失败。升级到Devise 1.2.1后黄瓜功能失效
Scenario: Signing up
Given I am on the homepage
When I follow "Sign up"
And I fill in "Email" with "[email protected]"
And I fill in "Password" with "password"
And I fill in "Password confirmation" with "password"
And I press "Sign up"
Then show me the page
Then I should see "You have signed up successfully."
Failed assertion, no message given. (MiniTest::Assertion)
/Users/ryanbigg/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/minitest/unit.rb:85:in `assert'
/Users/ryanbigg/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/test/unit/assertions.rb:19:in `assert'
./features/step_definitions/web_steps.rb:105:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:13:in `with_scope'
./features/step_definitions/web_steps.rb:101:in `/^(?:|I)should see "([^\"]*)"(?: within "([^\"]*)")?$/'
features/signing_up.feature:14:in `Then I should see "You have signed up successfully."'
Failing Scenarios:
cucumber features/signing_up.feature:6 # Scenario: Signing up
此功能并没有失败之前,我把1.1.8升级到1.2.1。它现在失败了,因为只要成功登录后它们被重定向到根路径,它就会将用户重定向到登录页面。
我非常希望将最新的Devise用作人正在阅读这个应用程序正在设计的书也将做到这一点。
我试图弄清楚到目前为止什么问题都无济于事。如果你有任何想法,他们将不胜感激。