Sha256: 0ba7434a8984a2dc228d0158b33bc7a781d817d7dcef793c5cdad87a13606376
Contents?: true
Size: 984 Bytes
Versions: 4
Compression:
Stored size: 984 Bytes
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require "json" ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f } require 'cacheable_flash' # Instead of loading the installed gem, we load the source code directly, would this work? #$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) #$LOAD_PATH.unshift(File.dirname(__FILE__)) require 'support/test_helpers' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. #Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.include CacheableFlash::TestHelpers, :type => :controller end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cacheable_flash-0.2.8 | spec/spec_helper.rb |
cacheable_flash-0.2.7 | spec/spec_helper.rb |
cacheable_flash-0.2.5 | spec/spec_helper.rb |
cacheable_flash-0.2.4 | spec/spec_helper.rb |