Sha256: 37323aabd122efe3d7f461b2aa0c3e5c078f0599cd6059adfc8f710764343662

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

require_relative 'spec_helper'



class AccessTester < Lanes::Model
    def self.attribute_names
        [:name]
    end
end


class RoleCollectionTest < Lanes::TestCase

    def test_administrator_grants
        user = lanes_users(:admin)
        assert_includes user.role_names, 'administrator'
        assert user.roles.can_read?(AccessTester)
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lanes-0.0.5 spec/role_collection_spec.rb
lanes-0.0.3 spec/role_collection_spec.rb
lanes-0.0.2 spec/role_collection_spec.rb
lanes-0.0.1 spec/role_collection_spec.rb