Sha256: 98bb0df4f110e5353148a1af950057b5d4b3d459df8a15ed64a73c0f3065a0bc
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
require 'spec_helper' RightOn.rights_yaml 'db/rights.yml' describe RightOn::ByGroup do let(:rights) { Bootstrap.various_rights_with_actions } before do rights end it 'should be sorted' do expect(RightOn::ByGroup.rights.keys).to eq ['admin', 'general'] end it 'should identify correct groups' do expect(RightOn::ByGroup.rights).to eq( 'general' => [ rights[:models], rights[:models_index], rights[:models_view], rights[:models_change] ], 'admin' => [ rights[:users] ] ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
right_on-1.0.0 | spec/by_group_spec.rb |