Skip to content

Instantly share code, notes, and snippets.

@vderyagin
Created November 4, 2012 11:48
Show Gist options
  • Save vderyagin/4011574 to your computer and use it in GitHub Desktop.
Save vderyagin/4011574 to your computer and use it in GitHub Desktop.
spec_helper for use with rspec
--color
--format progress
--order random
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.fail_fast = false
config.filter_run_including :focus
config.filter_run_excluding :slow # run with rspec --tag slow
config.alias_example_to :xit, :pending => 'Temporarily disabled (xit)'
config.order = 'random'
config.expect_with :rspec do |c|
c.syntax = :expect
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment