spec/toy/plugins_spec.rb in toystore-0.9.0 vs spec/toy/plugins_spec.rb in toystore-0.10.0
- old
+ new
@@ -29,11 +29,11 @@
it "adds plugin to plugins" do
Toy.plugins.should == [@mod]
end
it "adds plugins to classes declared after plugin was called" do
- create_constant('Move')
- Move.foo.should == 'foo'
- Move.new.bar.should == 'bar'
+ klass = Class.new { include Toy::Store }
+ klass.foo.should == 'foo'
+ klass.new.bar.should == 'bar'
end
end
-end
\ No newline at end of file
+end