rails_generators/templates/policy_spec.rb in walruz-rails-0.0.8 vs rails_generators/templates/policy_spec.rb in walruz-rails-0.0.9

- old
+ new

@@ -3,23 +3,19 @@ # require 'walruz/policies' # in your spec_helper.rb file describe Policies::<%= class_name %> do - before(:each) do - @policy = Policies::<%= class_name %>.new - end - describe "with valid actor and subject" do before(:each) do # setup valid relationship between actor and subject end it "should return true" do pending - # @policy.safe_authorized?(@actor, @subject)[0].should be_true + # Walruz.satisfies?(@actor, :<%= file_name %>, @subject).should be_true end end describe "with invalid actor and subject" do @@ -28,11 +24,11 @@ # setup invalid relationship between actor and subject end it "should return false" do pending - # @policy.safe_authorized?(@actor, @subject)[0].should be_false + # Walruz.satisfies?(@actor, :<%= file_name %>, @subject).should be_false end end -end \ No newline at end of file +end