Sha256: ae33d1493dbdbfa61ca0931324744ca81058973e36da3b75641f4b8695a50edb
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
Given(/the docker command cannot find the "(.*?)" binary/) do |command| require 'geordi/docker' expect_any_instance_of(Geordi::Docker).to receive(:mock_run).at_least(:once).and_wrap_original do |original, *args| if args[0] =~ /which #{Regexp.escape(command)}/ false else original.call(*args) end end end Given(/^the docker command finds a running shell "(.*?)"$/) do |shell_name| require 'geordi/docker' expect_any_instance_of(Geordi::Docker).to receive(:mock_parse).at_least(:once).and_wrap_original do |original, *args| if args[0] =~ /docker-compose ps/ "other_shell\nshell_name foo" else original.call(*args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geordi-2.12.3 | features/step_definitions/docker_command_steps.rb |
geordi-2.12.2 | features/step_definitions/docker_command_steps.rb |