Sha256: 12f2dcdd9096b7f578c927d0bd98ef3422accce65a8ca9346178a67c50d2411d

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

require 'spec_helper'

module Cavy
  describe Permissions::AdminPermission do
    subject(:permission) { Permissions.permission_for(build(:cavy_user, role: 'admin')) }

    it 'allows anything' do
      expect allow(:any, :thing)
      expect allow_param(:any, :thing)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cavy-0.1.0.beta2 spec/models/cavy/permissions/admin_permission_spec.rb