Sha256: 4c8bd61f6bd7db0f93896203100631aad5896b95e3a4eac4486804a94dc85ac3

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

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

require 'fixtures/web_env'

describe Environment do
  it "should eval string" do
    WebEnv.configure(%{
      env.host = 'fun.com'
      env.root = '/www/fun'
    }).host.should eql('fun.com')
  end
  
  it "should eval block" do
    WebEnv.configure { |env|
      env.host = 'fun'
    }.host.should eql('fun')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
captain_planet-0.2.0 spec/captain_planet/environment_spec.rb