spec/beaker/subcommand_spec.rb in beaker-3.32.0 vs spec/beaker/subcommand_spec.rb in beaker-3.33.0
- old
+ new
@@ -176,19 +176,17 @@
it 'checks to to see if the resource is a file_resource' do
expect_any_instance_of(Pathname).to receive(:exist?).and_return(true)
expect_any_instance_of(Pathname).to receive(:directory?).and_return(false)
- expect_any_instance_of(Pathname).to receive(:expand_path).once
expect_any_instance_of(Beaker::CLI).to receive(:execute!).once
expect{subcommand.exec('resource')}.to_not raise_error
end
it 'checks to see if the resource is a directory' do
expect_any_instance_of(Pathname).to receive(:exist?).and_return(true)
expect_any_instance_of(Pathname).to receive(:directory?).and_return(true)
expect(Dir).to receive(:glob)
- expect_any_instance_of(Pathname).to receive(:expand_path).once
expect_any_instance_of(Beaker::CLI).to receive(:execute!).once
expect{subcommand.exec('resource')}.to_not raise_error
end
it 'allows a hard coded suite name to be specified' do