Skip to content

Instantly share code, notes, and snippets.

@squeedee
Last active December 30, 2015 08:49
Show Gist options
  • Save squeedee/7805523 to your computer and use it in GitHub Desktop.
Save squeedee/7805523 to your computer and use it in GitHub Desktop.
Getting development dependencies for a dummy app
require 'spec_helper'
require 'simple_bdd'
RSpec.configure do |config|
config.include SimpleBdd
end
ENV["RAILS_ENV"] ||= "test"
Bundler.require(:development)
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = 'random'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment