Sha256: fd1aab535627303bfa96249e32c4b4c4051031ad9a0a52745639adad849e6ee8

Contents?: true

Size: 1.29 KB

Versions: 38

Compression:

Stored size: 1.29 KB

Contents

unless defined? RADIANT_ROOT
  ENV["RAILS_ENV"] = "test"
  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"

if File.directory?(File.dirname(__FILE__) + "/scenarios")
  Scenario.load_paths.unshift File.dirname(__FILE__) + "/scenarios"
end
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

38 entries across 20 versions & 8 rubygems

Version Path
radiant-parameterized_snippets-extension-1.0.1 spec/spec_helper.rb
radiant-sibling_tags-extension-0.2.1 spec/spec_helper.rb
radiant-sitemap_search-extension-1.0.3 spec/spec_helper.rb
radiant-page_group_permissions-extension-1.0.0 spec/spec_helper.rb
radiant-sitemap_search-extension-1.0.2 spec/spec_helper.rb
radiant-sitemap_search-extension-1.0.1 spec/spec_helper.rb
radiant-sitemap_search-extension-1.0.0 spec/spec_helper.rb
radiant-page_preview-extension-0.1.1 spec/spec_helper.rb
radiant-drag_order-extension-0.3.9 spec/spec_helper.rb
radiant-drag_order-extension-0.3.8 spec/spec_helper.rb
radiant-drag_order-extension-0.3.7 spec/spec_helper.rb
radiant-vapor-extension-2.1.2 spec/spec_helper.rb
radiant-vapor-extension-2.1.1 spec/spec_helper.rb
radiant-vapor-extension-2.1.0 spec/spec_helper.rb
radiant-0.6.5.1 vendor/extensions/textile_filter/spec/spec_helper.rb
radiant-0.6.5.1 vendor/extensions/archive/spec/spec_helper.rb
radiant-0.6.5.1 vendor/extensions/markdown_filter/spec/spec_helper.rb
radiant-0.6.5.1 lib/generators/extension/templates/spec_helper.rb
radiant-0.6.5 vendor/extensions/archive/spec/spec_helper.rb
radiant-0.6.5 vendor/extensions/markdown_filter/spec/spec_helper.rb