Skip to content

Instantly share code, notes, and snippets.


cheald/spec.diff Secret

Created November 12, 2014 03:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
diff --git a/spec/ruby/language/def_spec.rb b/spec/ruby/language/def_spec.rb
index 9929097..60bb7bb 100644
--- a/spec/ruby/language/def_spec.rb
+++ b/spec/ruby/language/def_spec.rb
@@ -369,9 +369,11 @@ describe "A method definition inside a metaclass scope" do
obj =
- class << obj
- lambda { def foo; end }.should raise_error(RuntimeError)
- end
+ lambda {
+ class << obj
+ def foo; end
+ end
+ }.should raise_error(RuntimeError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment