class RSpec::Bash::Mocks::Matchers::TestFor
@private
Public Class Methods
new(fullexpr)
click to toggle source
Calls superclass method
RSpec::Bash::Mocks::Matchers::BaseMatcher::new
# File lib/rspec/bash/mocks/matchers/test_for.rb, line 10 def initialize(fullexpr) @double = Doubles::ExactConditionalDouble.new(fullexpr) @display_name = "test_for" super() end
Public Instance Methods
with_args(args)
click to toggle source
# File lib/rspec/bash/mocks/matchers/test_for.rb, line 17 def with_args(args) fail "#{to_s}: cannot be used with '.with_args', use 'test_by' instead" end
Protected Instance Methods
create_behavior(**rest)
click to toggle source
Calls superclass method
RSpec::Bash::Mocks::Matchers::BaseMatcher#create_behavior
# File lib/rspec/bash/mocks/matchers/test_for.rb, line 23 def create_behavior(**rest) super(**rest, args: @double.fullexpr) end