spec/spec_helpers/examples/model.rb in protector-0.5.4 vs spec/spec_helpers/examples/model.rb in protector-0.5.5

- old
+ new

@@ -28,9 +28,17 @@ d.instance_variable_get('@protector_meta').should_not == nil d.restrict!('!') d.instance_variable_get('@protector_meta').should == nil end + it "doesn't get stuck with non-existing tables" do + Rumba.class_eval do + protect do + can + end + end + end + describe "visibility" do it "marks blocked" do Dummy.first.restrict!('-').visible?.should == false end \ No newline at end of file