Skip to content

Instantly share code, notes, and snippets.

@calavera
Created June 15, 2010 21:47
Show Gist options
  • Select an option

  • Save calavera/439788 to your computer and use it in GitHub Desktop.

Select an option

Save calavera/439788 to your computer and use it in GitHub Desktop.
str = StringSpecs::MyString.new('foo_bar')
str.send(@method, /(foo)_bar/)
$1.should be_instance_of(StringSpecs::MyString)
NoMethodError: undefined method `be_instance_of' for #<Object:0x10042f080 @method=:match>
/Users/david/dev/rubyspec/core/string/shared/match.rb:6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment