Skip to content

Instantly share code, notes, and snippets.

@amuino
Created September 22, 2012 12:31
Show Gist options
  • Save amuino/3766049 to your computer and use it in GitHub Desktop.
Save amuino/3766049 to your computer and use it in GitHub Desktop.
Fast RSpec without Spork - avoid loading rails again and again
rails c test
ActiveRecord::Base.logger.level = Logger::WARN
require 'rspec'
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
reload! ; RSpec::Core::Runner.run ["spec"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment