Permalink
Browse files

Clean up requires in test suite

  • Loading branch information...
1 parent ccb63ca commit eeb610c40d186c55f7761b1a85d3bc99c09dba74 @paulelliott committed Aug 6, 2012
Showing with 3 additions and 11 deletions.
  1. +0 −2 Rakefile
  2. +2 −6 features/support/env.rb
  3. +1 −3 spec/spec_helper.rb
View
@@ -1,7 +1,5 @@
require 'bundler'
-Bundler.require(:default, :development)
-
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = "spec/**/*_spec.rb"
View
@@ -1,11 +1,7 @@
-require 'fabrication'
+Bundler.require(:default, :development)
+Dir[File.expand_path(File.join(File.dirname(__FILE__),'..','..','spec','support','**','*.rb'))].each {|f| require f}
load 'lib/rails/generators/fabrication/cucumber_steps/templates/fabrication_steps.rb'
-load 'spec/support/active_record.rb'
-load 'spec/support/data_mapper.rb'
-load 'spec/support/plain_old_ruby_objects.rb'
-load 'spec/support/mongoid.rb'
-load 'spec/support/sequel.rb'
Before do
clear_mongodb
View
@@ -1,6 +1,4 @@
-require 'fabrication'
-require 'ffaker'
-require 'active_support'
+Bundler.require(:default, :development)
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.

0 comments on commit eeb610c

Please sign in to comment.