lib/crosstie/templates/resources.rb in crosstie-0.0.4 vs lib/crosstie/templates/resources.rb in crosstie-0.0.5

- old
+ new

@@ -2,10 +2,10 @@ resources_path = '/tmp/crosstie/resources.yml' if File.exist? resources_path YAML.load(File.read(resources_path)).each do |resource, fields| generate "scaffold", resource, *fields rake "db:migrate" - inject_into_file "spec/controllers/#{resource.tableize}_controller_spec.rb", after: "RSpec.describe #{resource.pluralize.camelize}Controller, :type => :controller do\n" do + inject_into_file "spec/controllers/#{resource.tableize}_controller_spec.rb", after: "RSpec.describe #{resource.pluralize.camelize}Controller, type: :controller do\n" do <<-EOF before { sign_in_user } EOF end