Sha256: 051074adabe6f2d634d120cd36ef3afe57179faad57d29db16e5f97243bf0668

Contents?: true

Size: 343 Bytes

Versions: 13

Compression:

Stored size: 343 Bytes

Contents

describe Chicanery::Collections do
  include Chicanery::Collections

  %w{server repo}.each do |entity|
    it "should default to an empty list of #{entity}s" do
      send("#{entity}s").should == []
    end

    it "should append to #{entity}s list" do
      send entity, :entity
      send("#{entity}s").should == [:entity]
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
chicanery-0.1.8 spec/chicanery/collections_spec.rb
chicanery-0.1.7 spec/chicanery/collections_spec.rb
chicanery-0.1.6 spec/chicanery/collections_spec.rb
chicanery-0.1.5 spec/chicanery/collections_spec.rb
chicanery-0.1.4 spec/chicanery/collections_spec.rb
chicanery-0.1.3 spec/chicanery/collections_spec.rb
chicanery-0.1.1 spec/chicanery/collections_spec.rb
chicanery-0.1.0 spec/chicanery/collections_spec.rb
chicanery-0.0.9 spec/chicanery/collections_spec.rb
chicanery-0.0.8 spec/chicanery/collections_spec.rb
chicanery-0.0.7 spec/chicanery/collections_spec.rb
chicanery-0.0.6 spec/chicanery/collections_spec.rb
chicanery-0.0.5 spec/chicanery/collections_spec.rb