Module: CommandTest::RSpec::Matchers
- Defined in:
- lib/command_test/adapters/rspec.rb
Instance Method Summary collapse
-
#run_command(*command) ⇒ Object
Matches if the proc runs the given command.
Instance Method Details
#run_command(*command) ⇒ Object
Matches if the proc runs the given command.
lambda do
...
end.should run_command('convert', 'evil.gif', 'good.png')
Commands are matched according to CommandTest.match? .
13 14 15 |
# File 'lib/command_test/adapters/rspec.rb', line 13 def run_command(*command) RunCommand.new(command) end |