diff options
Diffstat (limited to 'spec/ruby/library/singleton/dump_spec.rb')
-rw-r--r-- | spec/ruby/library/singleton/dump_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/ruby/library/singleton/dump_spec.rb b/spec/ruby/library/singleton/dump_spec.rb new file mode 100644 index 0000000000..03f94cffd2 --- /dev/null +++ b/spec/ruby/library/singleton/dump_spec.rb @@ -0,0 +1,14 @@ +require File.expand_path('../../../spec_helper', __FILE__) +require File.expand_path('../fixtures/classes', __FILE__) + +describe "Singleton#_dump" do + + it "returns an empty string" do + SingletonSpecs::MyClass.instance.send(:_dump).should == "" + end + + it "returns an empty string from a singleton subclass" do + SingletonSpecs::MyClassChild.instance.send(:_dump).should == "" + end + +end |