spec/unit/helper_spec.rb in rspec-system-2.1.2 vs spec/unit/helper_spec.rb in rspec-system-2.2.0

- old
+ new

@@ -21,9 +21,16 @@ r.class.should == RSpecSystem::Helper block_exec = true end block_exec.should be_true end + + it 'should convert :node using get_node_by_name when passed as a string' do + RSpecSystem::Helper.any_instance.expects(:result_data) + RSpecSystem::Helper.any_instance.expects(:get_node_by_name).with('mynode').returns(node) + helper = RSpecSystem::Helper.new({:node => 'mynode'}, self) + helper.opts[:node].should == node + end end context '#refresh' do it 'should only be called once even if data requested again' do RSpecSystem::Helper.any_instance.expects(:execute).once.returns({:test => true})