Sha256: f0bb8921053d81cee6315636b49b43fa6f05c76d2affc000d00eb0452c3dc63c

Contents?: true

Size: 1.65 KB

Versions: 59

Compression:

Stored size: 1.65 KB

Contents

unless defined? RADIANT_ROOT
  case
  when ENV["RADIANT_ENV_FILE"]
    require ENV["RADIANT_ENV_FILE"]
  when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
  else
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
  end
end

require "#{RADIANT_ROOT}/spec/spec_helper"
Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets")

require "authlogic/test_case"
include Authlogic::TestCase

ActionMailer::Base.delivery_method = :test  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.deliveries = []
Radiant::Config['readers.default_mail_from_address'] = "test@example.com"
Radiant::Config['readers.default_mail_from_name'] = "test"
Radiant::Config['site.title'] = 'Test Site'
Radiant::Config['site.url'] = 'www.example.com'
Radiant::Config['readers.layout'] = 'Main'


if File.directory?(File.dirname(__FILE__) + "/matchers")
  Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file }
end

Spec::Runner.configure do |config|
  # config.use_transactional_fixtures = true
  # config.use_instantiated_fixtures  = false
  # config.fixture_path = RAILS_ROOT + '/spec/fixtures'

  # You can declare fixtures for each behaviour like this:
  #   describe "...." do
  #     fixtures :table_a, :table_b
  #
  # Alternatively, if you prefer to declare them only once, you can
  # do so here, like so ...
  #
  #   config.global_fixtures = :table_a, :table_b
  #
  # If you declare global fixtures, be aware that they will be declared
  # for all of your examples, even those that don't use them.
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.38 spec/spec_helper.rb
radiant-reader-extension-3.0.37 spec/spec_helper.rb
radiant-reader-extension-3.0.36 spec/spec_helper.rb
radiant-reader-extension-3.0.35 spec/spec_helper.rb
radiant-reader-extension-3.0.33 spec/spec_helper.rb
radiant-reader-extension-3.0.32 spec/spec_helper.rb
radiant-reader-extension-3.0.31 spec/spec_helper.rb
radiant-reader-extension-3.0.30 spec/spec_helper.rb
radiant-reader-extension-3.0.29 spec/spec_helper.rb
radiant-reader-extension-3.0.28 spec/spec_helper.rb
radiant-reader-extension-3.0.27 spec/spec_helper.rb
radiant-reader-extension-3.0.26 spec/spec_helper.rb
radiant-reader-extension-3.0.25 spec/spec_helper.rb
radiant-reader-extension-3.0.24 spec/spec_helper.rb
radiant-reader-extension-3.0.23 spec/spec_helper.rb
radiant-reader-extension-3.0.20 spec/spec_helper.rb
radiant-reader-extension-3.0.19 spec/spec_helper.rb
radiant-reader-extension-3.0.18 spec/spec_helper.rb
radiant-reader-extension-3.0.17 spec/spec_helper.rb
radiant-reader-extension-3.0.16 spec/spec_helper.rb