rosa-build/spec/policies/statistic_policy_spec.rb

13 lines
235 B
Ruby
Raw Normal View History

2015-04-13 22:10:22 +01:00
require 'spec_helper'
RSpec.describe StatisticPolicy, type: :policy do
subject { described_class }
permissions :index? do
it "grants access to user" do
expect(subject).to permit(User.new, :statistic)
end
end
end