Sha256: 266c3298e72e047aa5447a10d1b935cc492da393dd21cff394cebbdf0eeda880

Contents?: true

Size: 755 Bytes

Versions: 2

Compression:

Stored size: 755 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/spec_helper")

Dir[File.expand_path(File.dirname(__FILE__) + "/../../vendor/rails/*/lib")].each do |rails_lib|
  $:.unshift rails_lib
end

ENV["RAILS_ENV"] = "test"
$:.unshift File.expand_path(File.dirname(__FILE__) + "/../support/rails_app/controllers")

require "initializer"
require "action_controller"

ActionController::Base.session = {:key => "_myapp_session", :secret => "a"*30}

require "spectie/rails"

module HelperToTestRailsIntegration
  def method_missing(method, *args, &block)
    if method.to_sym == :i_dont_exist_in_the_integration_session
      # handled here
    else
      super
    end
  end
end

Spec::Runner.configure do |config|
  config.include HelperToTestRailsIntegration
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spectie-0.0.4 spec/spectie/rails_helper.rb
spectie-0.0.3 spec/spectie/rails_helper.rb