Make the assign_to_matcher spec pass by fully qualifying the AssignToMatcher class

This commit is contained in:
Stafford Brunk 2011-05-27 09:53:21 -04:00
parent 4e199e085e
commit 6789b932a9
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\)$/