spec/storage/block_state_spec.rb in spnet-0.1.5 vs spec/storage/block_state_spec.rb in spnet-0.1.6
- old
+ new
@@ -10,22 +10,22 @@
it 'should assign port params' do
params = {
"VALUE1" => 0.0,
"VALUE2" => 1.0,
}
- block_state = BlockState.new :class_sym => :TestBlock, :port_params => params
- block_state.port_params.should eq(params)
+ block_state = BlockState.new :class_sym => :TestBlock, :params => params
+ block_state.params.should eq(params)
end
end
describe '#make_block' do
before :all do
@params = {
"VALUE1" => 0.1,
"VALUE2" => 0.9,
}
@class_sym = :TestBlock
- block_state = BlockState.new :class_sym => @class_sym, :port_params => @params
+ block_state = BlockState.new :class_sym => @class_sym, :params => @params
@block = block_state.make_block :sample_rate => 2
end
it 'should make a block of the given class type' do
@block.class.to_s.to_sym.should eq(@class_sym)