Commits

Anonymous committed 490d56b

Make the Riak::TestServer generator a bit more forgiving.

  • Participants
  • Parent commits 6bb1652

Comments (0)

Files changed (1)

ripple/lib/rails/generators/ripple/test/test_generator.rb

       def create_rspec_file
         if File.file?(Rails.root + 'spec/spec_helper.rb')
           template 'test_server.rb', 'spec/support/ripple.rb'
-          inject_into_file 'spec/spec_helper.rb', :after => "RSpec.configure do |config|" do
-            "  config.after(:each) do\n   Ripple::TestServer.clear\n  end\n"
+          inject_into_file 'spec/spec_helper.rb', :after => /R[Ss]pec\.configure do \|config\|/ do
+            "\n  config.after(:each) do\n    Ripple::TestServer.clear\n  end\n"
           end
         end
       end