spec/walruz/walruz_spec.rb in walruz-0.0.14 vs spec/walruz/walruz_spec.rb in walruz-0.0.15

- old
+ new

@@ -31,10 +31,19 @@ it 'should fetch anonymous policies with a specified label' do new_policy = Walruz::Utils.any(AuthorInColaborationPolicy, ColaboratingWithJohnPolicy) new_policy.set_policy_label(:crazy_policy) + Walruz.fetch_policy(:crazy_policy).should_not be_nil Walruz.fetch_policy(:crazy_policy).should == new_policy + end + + it 'should fetch composed policies with a specified label' do + NewPolicy = Walruz::Utils.any(AuthorInColaborationPolicy, + ColaboratingWithJohnPolicy) + NewPolicy.set_policy_label(:crazy_policy) + Walruz.fetch_policy(:crazy_policy).should_not be_nil + Walruz.fetch_policy(:crazy_policy).should == NewPolicy end end describe ".version" do