spec/policies/post_policy_spec.rb in pundit-0.3.0 vs spec/policies/post_policy_spec.rb in pundit-1.0.0

- old
+ new

@@ -2,10 +2,10 @@ describe PostPolicy do let(:user) { double } let(:own_post) { double(user: user) } let(:other_post) { double(user: double) } - subject { PostPolicy } + subject { described_class } permissions :update?, :show? do it "is successful when all permissions match" do should permit(user, own_post) end