小编mat*_*tt 的帖子

rspec失败了

从没有rspecs开始失败的地方出现以下错误:

ruby 1.8.7,rails 3.06.

~/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -S bundle exec rspec spec/controllers/gift_cards_controller_spec.rb:30
No DRb server is running. Running in local process instead ...
Run filtered including {:line_number=>30}
F

Failures:

  1) GiftCardsController POST to :create for a logged-in User with valid attributes 
     Failure/Error: it { should respond_with(:redirect) }
     NoMethodError:
       undefined method `respond_with' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1::Nested_1::Nested_1:0x11af4324>
     # ./spec/controllers/gift_cards_controller_spec.rb:30

Finished in 0.93776 seconds
1 example, 1 failure
Run Code Online (Sandbox Code Playgroud)

controller rspec ruby-on-rails

3
推荐指数
1
解决办法
1029
查看次数

标签 统计

controller ×1

rspec ×1

ruby-on-rails ×1