Class: JsonVoorhees::AppMakeTestsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/json_voorhees/app_make_tests/app_make_tests_generator.rb

Instance Method Summary collapse

Instance Method Details

#sprintObject



10
11
12
13
14
15
# File 'lib/generators/json_voorhees/app_make_tests/app_make_tests_generator.rb', line 10

def sprint
	template "model.rb.erb", "spec/engines/#{module_snake}/api/v#{api_version}/models/#{resource_singular}_spec.rb"
	template "routing.rb.erb", "spec/engines/#{module_snake}/api/v#{api_version}/routing/#{resource_singular}_spec.rb"
	template "factory.rb.erb", "spec/factories/#{module_snake}_#{resource_singular}_#{api_version}_factory.rb"
	requests
end