lib/pluginizer/plugin_builder.rb in pluginizer-0.1.5 vs lib/pluginizer/plugin_builder.rb in pluginizer-0.1.6
- old
+ new
@@ -35,11 +35,12 @@
%{config.fixture_path = "\#{::Rails.root}/spec/fixtures"},
%{config.fixture_path = "\#{#{camelized}::Engine.root}/spec/fixtures"}
run "bundle binstubs rspec-core"
+ requires = %w[fantaskspec email_spec email_spec/rspec].map{ |file| "require '#{file}'" }
insert_into_file rails_helper,
- "\nrequire 'fantaskspec'\n",
+ "\n#{requires.join("\n")}\n",
after: "# Add additional requires below this line. Rails is not loaded until this point!"
insert_into_file rails_helper,
"\n config.infer_rake_task_specs_from_file_location!\n",
before: /^end/
insert_into_file rails_helper,