spec/lib/polishgeeks/dev-tools/runner_spec.rb in polishgeeks-dev-tools-1.2.0 vs spec/lib/polishgeeks/dev-tools/runner_spec.rb in polishgeeks-dev-tools-1.2.1
- old
+ new
@@ -20,11 +20,11 @@
PolishGeeks::DevTools::Config::COMMANDS.each do |command|
config.public_send(:"#{command}=", true)
klass_name = command.to_s.gsub(/(?<=_|^)(\w)/, &:upcase).gsub(/(?:_)(\w)/, '\1')
- klass = Object.const_get("PolishGeeks::DevTools::Command::#{klass_name}")
+ klass = Object.const_get("PolishGeeks::DevTools::Commands::#{klass_name}")
instance = double
output = double
expect(klass)
@@ -32,9 +32,12 @@
.and_return(instance)
expect(instance)
.to receive(:stored_output=)
.with(output_storer)
+
+ expect(instance)
+ .to receive(:ensure_executable!)
expect(instance)
.to receive(:execute)
expect(instance)