Sha256: 69f1f5cb8949cd5b30eee82e156ec8e665f10435d37dc828cbe4f1eff93a5c73
Contents?: true
Size: 354 Bytes
Versions: 43
Compression:
Stored size: 354 Bytes
Contents
require 'spec_helper' require 'cancan/matchers' describe CurationConcerns::Ability, type: :model do describe "a registered user" do let(:user) { create(:user) } subject { Ability.new(user) } it { is_expected.to be_able_to(:read, build(:operation, user: user)) } it { is_expected.not_to be_able_to(:read, build(:operation)) } end end
Version data entries
43 entries across 43 versions & 1 rubygems