Failure/Error: expect (assigns(:devices)).to have(4).devices TypeError: can't convert RSpec::Matchers::BuiltIn::Have to Integer (RSpec::Matchers::BuiltIn::Have#to_int gives RSpec::Matchers::BuiltIn::Have)
改成 (assigns(:devices)).should have(4).devices 就没问题了 有人知道是什么情况么?
Using rspec-core (2.14.8) Using rspec-expectations (2.14.5) Using rspec-mocks (2.14.6) Using rspec-rails (2.14.2)