Skip to content

Commit

Permalink
Add additional default RSpec configurations to make testing even easier
Browse files Browse the repository at this point in the history
You can now specify :focus => true to a unit test to have Guard / Rspec only
run that unit test for focused testing
  • Loading branch information
Jamie Winsor committed Sep 27, 2011
1 parent 638032b commit eca3ac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def setup_environment

RSpec.configure do |config|
config.mock_with :rspec
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
end

# set javascript driver for capybara
Expand Down
3 changes: 3 additions & 0 deletions testing/lib/generators/files/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def setup_environment
Rails.backtrace_cleaner.remove_silencers!

RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
config.mock_with :rspec
config.use_transactional_fixtures = false
end
Expand Down

0 comments on commit eca3ac7

Please sign in to comment.