Class: RailsNewApp::TestRunnerProcessor

Inherits:
Processor
  • Object
show all
Defined in:
lib/rails-new-app/processors/test_runner_processor.rb

Constant Summary

Constants inherited from Processor

Processor::PATH

Instance Method Summary collapse

Methods inherited from Processor

#apply_template, configure, update_gemfile

Instance Method Details

#configure(config) ⇒ Object



9
10
11
12
13
14
# File 'lib/rails-new-app/processors/test_runner_processor.rb', line 9

def configure(config)
  puts "Processing test runner config"
  case config[:test_runner][:key]
  when "rspec" then apply_template "rspec-rails-config"
  end
end

#update_gemfile(config) ⇒ Object



3
4
5
6
7
# File 'lib/rails-new-app/processors/test_runner_processor.rb', line 3

def update_gemfile(config)
  case config[:test_runner][:key]
  when "rspec" then apply_template "rspec-rails-gemfile"
  end
end