Sha256: c4c1df363ebc924ed1f7910e1eebddc829c2c8c204edcced2436cfddfb4e090a

Contents?: true

Size: 1.46 KB

Versions: 9

Compression:

Stored size: 1.46 KB

Contents

require 'rack/test'

root = File.expand_path '../../', __FILE__

# Configure the Rack environment.
ENV['RACK_ENV'] ||= 'test'

# Require the test object.
require 'ember/cli/deploy/rack'

# Define RSpec mixin.
module RSpecMixin
  include Rack::Test::Methods

  def app
    Ember::CLI::Deploy::Rack::Engine
  end

  def fixtures
    File.expand_path '../fixtures', __FILE__
  end
end

# Require the spec helper.
require 'spec_helper'

# Add additional requires below this line.

# Requires supporting Ruby files with custom matchers, macros etc. in `spec/support` and its subdirectories. Files
# matching `spec/**/*_spec.rb` are run as spec files by default. This means that files in `spec/support` that end in
# `_spec.rb` will both be required and run as specs, causing the specs to be run twice. It is recommended that you do
# not name files matching this glob to end with `_spec.rb`. You can configure this pattern with the `--pattern` option
# on the command line or in `~/.rspec`, `.rspec` or `.rspec-local`.

# The following line is provided for convenience purposes. It has the downside of increasing the boot-up time by
# auto-requiring all files in the `support` directory. Alternatively, in the individual `*_spec.rb` files, manually
# require only the support files necessary.
support = File.expand_path 'spec/support', root

Dir["#{support}/**/*.rb"].each { |file| require file }

RSpec.configure do |config|
  # Include the above defined RSpec mixin.
  config.include RSpecMixin
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ember-cli-deploy-rack-2.5.0 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.4.4 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.4.3 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.4.2 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.4.1 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.4.0 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.3.2 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.3.1 spec/ember_cli_deploy_rack_helper.rb
ember-cli-deploy-rack-2.3.0 spec/ember_cli_deploy_rack_helper.rb