Sha256: cd6e44ec682f18b417a135c4704a98e70ba752c6bdbc19215e20c8a09536be55
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') require 'spec' require 'buildmaster/build_number_file' require 'buildmaster/cotta' require 'buildmaster/cotta/in_memory_system' module BuildMaster context 'BuildNumberFileTest' do setup do @cotta = Cotta.new(InMemorySystem.new) end teardown do @cotta = nil end specify 'load_file' do path = @cotta.file('tmp/buildnumber') path.save(2) build_number = BuildNumberFile.new(path) build_number.number.should_equal 2 end specify 'increase_build' do path = @cotta.file('tmp/buildnumber') path.save(3) build_number = BuildNumberFile.new(path) build_number.increase_build build_number.number.should_equal 4 reloaded = BuildNumberFile.new(path) reloaded.number.should_equal 4 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
BuildMaster-0.9.0 | test/buildmaster/tc_build_number_file.rb |
BuildMaster-0.9.1 | test/buildmaster/tc_build_number_file.rb |