Sha256: 9898708d01a3d83fde71ed562fcb6169befa70dfd884e7505a1954f364fb725b
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
require_relative "../test-util" describe "Pione::System::DomainInfo" do before do @vtable = Model::VariableTable.new @vtable.set(Variable.new("A"), Model::PioneInteger.new(1).to_seq) @vtable.set(Variable.new("B"), Model::PioneFloat.new(1.23).to_seq) @vtable.set(Variable.new("C"), Model::PioneString.new("A").to_seq) @vtable.set(Variable.new("D"), Model::PioneBoolean.new(true).to_seq) @location = Location[Temppath.create].tap do |location| System::DomainInfo.new(@vtable).write(location) end end it "should write a domain info file" do location = Location[Temppath.create] System::DomainInfo.new(@vtable).write(location) location.should.exist end it "should read a domain info file" do System::DomainInfo.read(@location).variable_table.should == @vtable end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | test/system/spec_domain-info.rb |
pione-0.2.1 | test/system/spec_domain-info.rb |
pione-0.2.0 | test/system/spec_domain-info.rb |