Skip to content

Instantly share code, notes, and snippets.

@davelnewton
Created August 9, 2012 01:48
Show Gist options
  • Save davelnewton/3300254 to your computer and use it in GitHub Desktop.
Save davelnewton/3300254 to your computer and use it in GitHub Desktop.
RSpec Foolishness
describe Foo do
it { should respond_to(:bar) }
end
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'
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