Commits

Sean Cribbs  committed 6bb1652

Fix cucumber generation.

  • Participants
  • Parent commits 93b4f20

Comments (0)

Files changed (1)

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

       def create_cucumber_file
         if File.directory?(Rails.root + "features/support")
           template 'test_server.rb', 'features/support/ripple.rb'
-          insert_into_file 'features/support/ripple.rb', "After do\n  Ripple::TestServer.clear\nend"
+          insert_into_file 'features/support/ripple.rb', "\n\nAfter do\n  Ripple::TestServer.clear\nend", :after => "Ripple::TestServer.setup"
         end
       end
-      
+
       # RSpec
       def create_rspec_file
         if File.file?(Rails.root + 'spec/spec_helper.rb')