Module: GLCommand::Matchers

Defined in:
lib/gl_command/rspec/matchers.rb

Defined Under Namespace

Classes: AllowArgumentMatcher, CommandArgumentMatcher, RequireArgumentMatcher, ReturnAttributeMatcher

Instance Method Summary collapse

Instance Method Details

#allow(attribute) ⇒ Object



103
104
105
# File 'lib/gl_command/rspec/matchers.rb', line 103

def allow(attribute)
  AllowArgumentMatcher.new(attribute)
end

#require(attribute) ⇒ Object

Helper methods to provide the clean syntax in specs



99
100
101
# File 'lib/gl_command/rspec/matchers.rb', line 99

def require(attribute)
  RequireArgumentMatcher.new(attribute)
end

#returns(attribute) ⇒ Object



107
108
109
# File 'lib/gl_command/rspec/matchers.rb', line 107

def returns(attribute)
  ReturnAttributeMatcher.new(attribute)
end