Sha256: 28b212be0b8945957d7cdb460e9121f4c66d2560f78141ef9ce17052ad3322c9

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe Credentials::Rulebook do
  it "should be empty when created" do
    Credentials::Rulebook.new(Animal).should be_empty
  end
  
  it "should duplicate on inheritance" do
    Animal.credentials.should_not == Carnivore.credentials
    Animal.credentials.rules.should_not == Carnivore.credentials.rules
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
credentials-2.3.1 spec/rulebook_spec.rb
credentials-2.3.0 spec/rulebook_spec.rb
credentials-2.2.3 spec/rulebook_spec.rb
credentials-2.2.2 spec/rulebook_spec.rb
credentials-2.2.1 spec/rulebook_spec.rb
credentials-2.2.0 spec/rulebook_spec.rb
credentials-2.1.0 spec/rulebook_spec.rb