summaryrefslogtreecommitdiff
path: root/spec/mspec/spec/integration/object_methods_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/spec/integration/object_methods_spec.rb')
-rw-r--r--spec/mspec/spec/integration/object_methods_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/mspec/spec/integration/object_methods_spec.rb b/spec/mspec/spec/integration/object_methods_spec.rb
new file mode 100644
index 0000000000..3be704beb6
--- /dev/null
+++ b/spec/mspec/spec/integration/object_methods_spec.rb
@@ -0,0 +1,18 @@
+require 'spec_helper'
+
+expected_output = <<EOS
+RUBY_DESCRIPTION
+.
+
+Finished in D.DDDDDD seconds
+
+1 file, 1 example, 1 expectation, 0 failures, 0 errors, 0 tagged
+EOS
+
+describe "MSpec" do
+ it "does not define public methods on Object" do
+ out, ret = run_mspec("run", "spec/fixtures/object_methods_spec.rb")
+ out.should == expected_output
+ ret.success?.should == true
+ end
+end