Sha256: 7df11574e64abf3d20fce8cb5fc0e9424bfba03cb63088b4acd01bd0d06c41cc

Contents?: true

Size: 396 Bytes

Versions: 6

Compression:

Stored size: 396 Bytes

Contents

require 'spec_helper'
module Alf
  describe Environment::Explicit do
    
    it "should allow branching easily" do
      env = Environment::Explicit.new(:hello => "world")
      env.dataset(:hello).should == "world"
      env = env.branch(:hello => "world2")
      env.dataset(:hello).should == "world2"
      env = env.unbranch
      env.dataset(:hello).should == "world"
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-0.10.1 spec/unit/environment/test_explicit.rb
alf-0.10.0 spec/unit/environment/test_explicit.rb
alf-0.9.3 spec/unit/environment/test_explicit.rb
alf-0.9.2 spec/unit/environment/test_explicit.rb
alf-0.9.1 spec/unit/environment/test_explicit.rb
alf-0.9.0 spec/environment/explicit_spec.rb