Sha256: 7086e927539db96dedf1b5aecb80e234158eee424fe1c8f93db184d1ea000cc4
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
require 'spec_helper' describe ReUser::RoleDefinition do subject do definition = proc do role :foo end described_class.new definition end describe '#role' do it "takes a symbol, and an optional array" do lambda { subject.role(:admin, [:read, :write]) }.should_not raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reuser-3.1.2 | spec/reuser/role_definition_spec.rb |
reuser-3.1.1 | spec/reuser/role_definition_spec.rb |