Fix test which break after upgrade to new RSpec 2.6.0
This commit is contained in:
parent
372eb16e8f
commit
1cd7769339
|
@ -8,7 +8,7 @@ describe Shoulda::Matchers::ActionController::AssignToMatcher do
|
|||
end
|
||||
|
||||
controller = build_response { @var = WrongClass.new }
|
||||
matcher = AssignToMatcher.new(:var).with_kind_of(Fixnum)
|
||||
matcher = Shoulda::Matchers::ActionController::AssignToMatcher.new(:var).with_kind_of(Fixnum)
|
||||
matcher.matches?(controller)
|
||||
|
||||
matcher.failure_message.should =~ /but got wrong class \(WrongClass\)$/
|
||||
|
|
Loading…
Reference in New Issue