Module: RSpec::RailsApp::Content::Matchers

Defined in:
lib/rails_app_spec/matchers/special/have_gem.rb,
lib/rails_app_spec/matchers/special/have_gems.rb,
lib/rails_app_spec/matchers/special/have_app_config.rb

Defined Under Namespace

Classes: HaveAppConfig, HaveGem, HaveGems

Instance Method Summary collapse

Instance Method Details

#have_app_config(statement_hash) ⇒ Object

config.autoload_paths = %W(#{Rails.root}/lib) have_app_config :autoload_paths => ‘%W(#{Rails.root}/lib)’, :op => ‘=’



48
49
50
# File 'lib/rails_app_spec/matchers/special/have_app_config.rb', line 48

def have_app_config statement_hash
  HaveAppConfig.new statement_hash
end

#have_gem(*args) ⇒ Object

config.autoload_paths = %W(#{Rails.root}/lib) have_app_config :autoload_paths => ‘%W(#{Rails.root}/lib)’, :op => ‘=’



63
64
65
# File 'lib/rails_app_spec/matchers/special/have_gem.rb', line 63

def have_gem *args
  HaveGem.new *args
end

#have_gems(*names) ⇒ Object

config.autoload_paths = %W(#{Rails.root}/lib) have_app_config :autoload_paths => ‘%W(#{Rails.root}/lib)’, :op => ‘=’



54
55
56
# File 'lib/rails_app_spec/matchers/special/have_gems.rb', line 54

def have_gems *names
  HaveGems.new *names
end