Sha256: f9070009726a562220ce9336e665e3ea0d7e02cb347678e4687d28e5ae0f86dc

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

require "spec_helper"

describe Machined::Context do
  describe "#machined" do
    it "returns a reference to the Machined environment" do
      with_context do |context, output|
        context.machined.should be(machined)
      end
    end
  end
  
  describe "#config" do
    it "returns a reference to the Machined environment's configuration" do
      with_context do |context, output|
        machined.config.layout = "application"
        context.config.layout.should == "application"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
machined-0.2.2 spec/machined/context_spec.rb
machined-0.2.1 spec/machined/context_spec.rb
machined-0.2.0 spec/machined/context_spec.rb
machined-0.1.1 spec/machined/context_spec.rb
machined-0.1.0 spec/machined/context_spec.rb