spec/storage/network_state_spec.rb in spnet-0.1.5 vs spec/storage/network_state_spec.rb in spnet-0.1.6

- old
+ new

@@ -3,12 +3,12 @@ describe SPNet::NetworkState do describe '.make_network' do before :all do @network_state = NetworkState.new( :block_states => { - "A" => BlockState.new(:class_sym => :TestBlock, :hashed_args => {}, :port_params => { "VALUE1" => 0.2}), - "B" => BlockState.new(:class_sym => :TestBlock, :hashed_args => {}, :port_params => { "VALUE1" => 0.4}) + "A" => BlockState.new(:class_sym => :TestBlock, :hashed_args => {}, :params => { "VALUE1" => 0.2}), + "B" => BlockState.new(:class_sym => :TestBlock, :hashed_args => {}, :params => { "VALUE1" => 0.4}) }, :link_states => [ LinkState.new( :from => PortLocater.new(:block_name => "A", :port_name => "OUT"), :to => PortLocater.new(:block_name => "B", :port_name => "IN") @@ -23,10 +23,10 @@ network.blocks["A"].class.should be(TestBlock) network.blocks.should have_key("B") network.blocks["B"].class.should be(TestBlock) end - it 'should assign values found in :port_params' do + it 'should assign values found in :params' do network = @network_state.make_network :sample_rate => 4 network.blocks["A"].value1.should eq(0.2) network.blocks["B"].value1.should eq(0.4) end