Sha256: 790dfc339e689aa8260396be0576010f7eaf0b366eb46223fc9bfb9679289d31

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 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

class SpecialisedTestAuthorizerController < TestAuthorizerController
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authoritah-0.1.2 spec/spec_helper.rb