Created
August 9, 2012 01:48
-
-
Save davelnewton/3300254 to your computer and use it in GitHub Desktop.
RSpec Foolishness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Foo do | |
it { should respond_to(:bar) } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failure/Error: it { should respond_to(:bar) } | |
ArgumentError: | |
wrong number of arguments (0 for 1) | |
# org/jruby/RubyBasicObject.java:1730:in `instance_eval' | |
# ./spec/models/foo_spec.rb:19:in `(root)' | |
# org/jruby/RubyBasicObject.java:1730:in `instance_eval' | |
# org/jruby/RubyArray.java:2339:in `collect' | |
# org/jruby/RubyArray.java:2339:in `collect' | |
# org/jruby/RubyArray.java:2339:in `collect' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo < Plugh | |
def initialize(s) | |
# Do stuff | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment