Skip to content

Instantly share code, notes, and snippets.

@cheald

cheald/spec.diff Secret

Created November 12, 2014 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheald/450f39f57f9864050461 to your computer and use it in GitHub Desktop.
Save cheald/450f39f57f9864050461 to your computer and use it in GitHub Desktop.
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 = Object.new
obj.freeze
- class << obj
- lambda { def foo; end }.should raise_error(RuntimeError)
- end
+ lambda {
+ class << obj
+ def foo; end
+ end
+ }.should raise_error(RuntimeError)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment