Module: DontRepeatYourself::UnitTestingHelpers::RubyProjectHelpers

Included in:
RSpecMatchers, TestUnitExtension, Test::Unit::TestCase
Defined in:
lib/dont_repeat_yourself/unit_testing_helpers.rb

Instance Method Summary collapse

Instance Method Details

#rails_application(rails_root = RAILS_ROOT) ⇒ Object



19
20
21
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 19

def rails_application(rails_root = RAILS_ROOT)
  DontRepeatYourself::RailsProjectReporter.new(rails_root)
end

#ruby_code_in_rails_plugin(plugin_name) ⇒ Object



15
16
17
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 15

def ruby_code_in_rails_plugin(plugin_name)
  DontRepeatYourself::RailsPluginProjectReporter.new(plugin_name)
end

#ruby_project(project_path) ⇒ Object



12
13
14
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 12

def ruby_project(project_path)
  DontRepeatYourself::RubyProjectReporter.new(project_path)
end