lib/generators/graphiti/resource_test_generator.rb in graphiti-1.0.alpha.17 vs lib/generators/graphiti/resource_test_generator.rb in graphiti-1.0.alpha.18
- old
+ new
@@ -30,15 +30,15 @@
@resource.gsub('Resource', '').underscore.pluralize
end
def generate_resource_specs
if actions?('create', 'update', 'destroy')
- to = "spec/resources/#{var}/writes_spec.rb.rb"
+ to = "spec/resources/#{var}/writes_spec.rb"
template('resource_writes_spec.rb.erb', to)
end
if actions?('index', 'show')
- to = "spec/resources/#{var}/reads_spec.rb.rb"
+ to = "spec/resources/#{var}/reads_spec.rb"
template('resource_reads_spec.rb.erb', to)
end
end
def resource_class