Sha256: decc2ee848d1badf5f95f5e90c6e3aa6dfcd7ecde600ad140bf7280cd803c240

Contents?: true

Size: 553 Bytes

Versions: 14

Compression:

Stored size: 553 Bytes

Contents

require File.expand_path('spec/spec_helper')
require 'geoff'
require 'geoff/container'

describe Container do
  subject(:container) { Container.new }

  context 'attempt to access missing key' do
    specify do
      lambda do
        container.egg
      end.should raise_error Geoff::ContainerLabelMissing
    end
  end

  context '#merge' do
    let(:other_container) do
      Container.new(node_dsls: {egg: 'cheese'})
    end

    specify do
      container.merge other_container

      container.node_dsls[:egg].should == 'cheese'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
geoff-0.2.6 spec/models/container_spec.rb
geoff-0.2.5 spec/models/container_spec.rb
geoff-0.2.3 spec/models/container_spec.rb
geoff-0.2.2 spec/models/container_spec.rb
geoff-0.2.1 spec/models/container_spec.rb
geoff-0.2.0 spec/models/container_spec.rb
geoff-0.1.2 spec/models/container_spec.rb
geoff-0.1.1 spec/models/container_spec.rb
geoff-0.1.0 spec/models/container_spec.rb
geoff-0.0.8 spec/models/container_spec.rb
geoff-0.0.7 spec/models/container_spec.rb
geoff-0.0.6 spec/models/container_spec.rb
geoff-0.0.5 spec/models/container_spec.rb
geoff-0.0.4 spec/models/container_spec.rb