spec/spec_helper.rb in netzke-testing-0.9.1 vs spec/spec_helper.rb in netzke-testing-0.10.0.rc1
- old
+ new
@@ -5,17 +5,17 @@
require 'rspec/autorun'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
+require 'netzke/testing'
-# Checks for pending migrations before tests are run.
-# If you are not using ActiveRecord, you can remove this line.
-ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
-
RSpec.configure do |config|
require 'capybara/rspec'
require 'capybara/rails'
+
+ Netzke::Testing.rspec_init(config)
+
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
#
# config.mock_with :mocha