summaryrefslogtreecommitdiff
path: root/spec/mspec/spec/fixtures/object_methods_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/spec/fixtures/object_methods_spec.rb')
-rw-r--r--spec/mspec/spec/fixtures/object_methods_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/mspec/spec/fixtures/object_methods_spec.rb b/spec/mspec/spec/fixtures/object_methods_spec.rb
new file mode 100644
index 0000000000..9b7c1523e5
--- /dev/null
+++ b/spec/mspec/spec/fixtures/object_methods_spec.rb
@@ -0,0 +1,8 @@
+unless defined?(RSpec)
+ describe "Object" do
+ it ".public_instance_methods(false) is empty" do
+ Object.public_instance_methods(false).sort.should ==
+ [:should, :should_not, :should_not_receive, :should_receive, :stub!]
+ end
+ end
+end