Class: CommandTest::RSpec::RunCommand
- Inherits:
-
Object
- Object
- CommandTest::RSpec::RunCommand
- Defined in:
- lib/command_test/adapters/rspec.rb
Instance Method Summary collapse
- #failure_message_for_should ⇒ Object
- #failure_message_for_should_not ⇒ Object
-
#initialize(expected) ⇒ RunCommand
constructor
A new instance of RunCommand.
- #matches?(proc) ⇒ Boolean
Constructor Details
#initialize(expected) ⇒ RunCommand
Returns a new instance of RunCommand.
19 20 21 |
# File 'lib/command_test/adapters/rspec.rb', line 19 def initialize(expected) @expected = expected end |
Instance Method Details
#failure_message_for_should ⇒ Object
28 29 30 |
# File 'lib/command_test/adapters/rspec.rb', line 28 def @test. end |
#failure_message_for_should_not ⇒ Object
32 33 34 |
# File 'lib/command_test/adapters/rspec.rb', line 32 def @test. end |
#matches?(proc) ⇒ Boolean
23 24 25 26 |
# File 'lib/command_test/adapters/rspec.rb', line 23 def matches?(proc) @test = Tests::RunsCommand.new(@expected, &proc) @test.matches? end |