Sha256: 0185ee918382063e5deb639ff3638191c39de7ba60867d54e087ad1b68edf0db
Contents?: true
Size: 604 Bytes
Versions: 10
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' describe SecurityRole do before(:all) do @role = SecurityRole.create(:description => "Test Role", :internal_identifier => 'test role') end it "should allow you to add and remove capabilities" do c = FileAsset.add_capability('upload') @role.capabilities.include?(c).should eq false @role.add_capability(c) @role.capabilities.include?(c).should eq true @role.remove_capability(c) @role.capabilities.include?(c).should eq false end it "can transform into xml" do @role.to_xml end after(:all) do SecurityRole.destroy_all end end
Version data entries
10 entries across 10 versions & 1 rubygems