Fix test which break after upgrade to new RSpec 2.6.0

This commit is contained in:
Prem Sichanugrist 2011-05-30 15:35:54 -04:00
parent 372eb16e8f
commit 1cd7769339
1 changed files with 1 additions and 1 deletions

View File

@ -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\)$/