Sha256: 2567f80eb6613a46a25c91f4cbed22b39b87afb9949f5e73f98c8a7f0125d4a8

Contents?: true

Size: 1.24 KB

Versions: 138

Compression:

Stored size: 1.24 KB

Contents

unless defined? TRUSTY_CMS_ROOT
  ENV["Rails.env"] = "test"
  case
  when ENV["RADIANT_ENV_FILE"]
    require ENV["RADIANT_ENV_FILE"]
  when File.dirname(__FILE__) =~ %r{vendor/trusty_cms/vendor/extensions}
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
  else
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
  end
end
require "#{TRUSTY_CMS_ROOT}/spec/spec_helper"

Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets")

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

138 entries across 138 versions & 1 rubygems

Version Path
trusty-cms-5.3.3 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.3.2 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.3.1 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.3 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.2.3 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.2.2 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.2.1 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.2.0 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.1.0 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.9 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.7 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.6 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.5 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.4 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.3 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.2 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.1 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-4.3.5 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-5.0.0 lib/generators/language_extension/templates/spec_helper.rb
trusty-cms-4.3.4 lib/generators/language_extension/templates/spec_helper.rb