decidim-dev/lib/generators/decidim/dummy_generator.rb in decidim-0.0.6 vs decidim-dev/lib/generators/decidim/dummy_generator.rb in decidim-0.0.7

- old
+ new

@@ -56,9 +56,14 @@ # initializer comments) template "autoprefixer.yml", "#{dummy_path}/config/autoprefixer.yml" template "autoprefixer_initializer.rb", "#{dummy_path}/config/initializers/autoprefixer.rb" end + def test_env + gsub_file "#{dummy_path}/config/environments/test.rb", + /allow_forgery_protection = (.*)/, 'allow_forgery_protection = true' + end + private def dummy_path ENV["DUMMY_PATH"] || engine_path + "/spec/#{dir_name}_dummy_app" end