Sha256: 23fda33577ed4ea23b19ed69001efcf21ab2561a409b16f7893314db0d7d2b9d

Contents?: true

Size: 659 Bytes

Versions: 6

Compression:

Stored size: 659 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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authoritah-0.1.0 spec/spec_helper.rb
authoritah-0.0.5 spec/spec_helper.rb
authoritah-0.0.4 spec/spec_helper.rb
authoritah-0.0.3 spec/spec_helper.rb
authoritah-0.0.2 spec/spec_helper.rb
authoritah-0.0.1 spec/spec_helper.rb