spec/spec_helpers/examples/model.rb in protector-0.3.0 vs spec/spec_helpers/examples/model.rb in protector-0.3.1
- old
+ new
@@ -1,9 +1,10 @@
shared_examples_for "a model" do
it "evaluates meta properly" do
dummy.instance_eval do
- protect do |subject, dummy|
+ protect do |subject, entry|
subject.should == '!'
+ entry.protector_subject?.should == false
scope { limit(5) }
can :view
can :create
\ No newline at end of file