spec/spec_helper.rb in seymour-0.0.4 vs spec/spec_helper.rb in seymour-0.0.5
- old
+ new
@@ -1,24 +1,24 @@
+dir = File.dirname(File.expand_path(__FILE__))
+$LOAD_PATH.unshift dir + '/../lib'
+
# Configure Rails Environment
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../dummy/config/environment.rb", __FILE__)
+require 'seymour'
+require 'seymour/engine'
+
require 'rspec/rails'
-# require "rails/test_help"
-Rails.backtrace_cleaner.remove_silencers!
+require "ammeter/init"
+require 'factory_girl_rails'
-# Load support files
+# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
-dir = File.dirname(File.expand_path(__FILE__))
-$LOAD_PATH.unshift dir + '/../lib'
-$LOAD_PATH.unshift dir + '/support'
-
-require 'seymour'
-require 'test_redis'
-require 'factory_girl_rails'
-
RSpec.configure do |config|
config.mock_with :rspec
+ config.use_transactional_fixtures = false
end
-TestRedis::Server.start!(dir)
\ No newline at end of file
+Rails.backtrace_cleaner.remove_silencers!
+TestRedis::Server.start!(dir)