Sha256: de6cfabfecf9a5f7edf95fc67ceb9a70f811dc299caaa25fd9fd8bc7b578dcef

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe Machined::Context do
  describe '#machined' do
    it 'returns a reference to the Machined environment' do
      build_context.machined.should be(machined)
    end
  end

  describe '#config' do
    it "returns a reference to the Machined environment's configuration" do
      machined.config.layout = 'application'
      build_context.config.layout.should == 'application'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
machined-1.1.0 spec/machined/context_spec.rb
machined-1.0.3 spec/machined/context_spec.rb
machined-1.0.2 spec/machined/context_spec.rb
machined-1.0.1 spec/machined/context_spec.rb