module Cuprum::RSpec::Matchers
Public Instance Methods
be_a_failing_result()
click to toggle source
Asserts that the object is a Cuprum::Result
with status: :failure.
@return [Cuprum::RSpec::BeAResultMatcher] the generated matcher.
# File lib/cuprum/rspec/be_a_result.rb, line 10 def be_a_failing_result be_a_result.with_status(:failure) end
be_a_passing_result()
click to toggle source
Asserts that the object is a Cuprum::Result
with status: :success.
@return [Cuprum::RSpec::BeAResultMatcher] the generated matcher.
# File lib/cuprum/rspec/be_a_result.rb, line 17 def be_a_passing_result be_a_result.with_status(:success).and_error(nil) end
be_a_result()
click to toggle source
Asserts that the object is a Cuprum::Result
.
@return [Cuprum::RSpec::BeAResultMatcher] the generated matcher.
# File lib/cuprum/rspec/be_a_result.rb, line 24 def be_a_result Cuprum::RSpec::BeAResultMatcher.new end
be_callable()
click to toggle source
Asserts that the command defines a :process method.
@return [RSpec::Matchers::BuiltIn::RespondTo] the generated matcher.
# File lib/cuprum/rspec/be_callable.rb, line 10 def be_callable respond_to(:process, true) end