Skip to content
Browse files

Switch to plain class instead of constant stuff for plugin spec.

  • Loading branch information...
1 parent 5a7a90e commit dff762343b52473be92b95a4d91ed1b511f1f8c8 @jnunemaker committed Apr 18, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/toy/plugins_spec.rb
View
8 spec/toy/plugins_spec.rb
@@ -31,9 +31,9 @@
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
+end

0 comments on commit dff7623

Please sign in to comment.
Something went wrong with that request. Please try again.