lib/spec/api/helper/respond_negator.rb in rspec-0.5.11 vs lib/spec/api/helper/respond_negator.rb in rspec-0.5.12
- old
+ new
@@ -1,15 +1,15 @@
module Spec
- class RespondNegator < ShouldBase
-
- def initialize(target)
- @target = target
- end
-
- def to(expected)
- fail_with_message(default_message("should not respond to", expected)) if @target.respond_to? expected
- end
-
- end
+ class RespondNegator < ShouldBase
+
+ def initialize(target)
+ @target = target
+ end
+
+ def to(expected)
+ fail_with_message(default_message("should not respond to", expected)) if @target.respond_to? expected
+ end
+
+ end
end
\ No newline at end of file