Sha256: 2d24ead9b61f8678d3700ad9fb2d702ac508d098ff31940710a54a4f8572f1ea
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/railsenv/config/environment") require 'spec' require 'spec/rails' Spec::Runner.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false config.mock_with :mocha end plugin_spec_dir = File.dirname(__FILE__) ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log") dir = File.expand_path(File.dirname(__FILE__)) require "#{dir}/../lib/authoritah" class TestAuthorizerController < ActionController::Base def index render end def create redirect_to '/success' end def show render end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authoritah-0.1.1 | spec/spec_helper.rb |