spec/prepl_spec.rb in puppet-repl-0.1.1 vs spec/prepl_spec.rb in puppet-repl-0.2.0

- old
+ new

@@ -24,6 +24,22 @@ end it do expect(`bundle exec bin/prepl --play #{file_url} --run-once`) .to match(/Puppet::Type::File/) end + + describe 'remote_node' do + let(:node_obj) do + YAML.load_file(File.join(fixtures_dir, 'node_obj.yaml')) + end + let(:node_name) do + 'puppetdev.localdomain' + end + before :each do + allow(PuppetRepl).to receive(:get_remote_node).with(node_name).and_return(node_obj) + end + xit do + expect(`echo 'vars'| bundle exec bin/prepl -n #{node_name}`) + .to match(/server_facts/) + end + end end