Skip to content

Commit

Permalink
Add RSpec support files
Browse files Browse the repository at this point in the history
  • Loading branch information
jfelchner committed Apr 11, 2011
1 parent dd577b6 commit d3b1ea1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'rspec'

Dir[File.join(File.dirname(__FILE__), "..", "lib", "progress_bar.rb")].each {|f| require f}
Dir[File.join(File.dirname(__FILE__), "..", "spec", "support", "**", "*.rb")].each {|f| require f}

Rspec.configure do |c|
c.mock_with :rspec
end
7 changes: 7 additions & 0 deletions spec/support/focused.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RSpec.configure do |config|
# Configure RSpec to run focused specs, and also respect the alias 'fit' for focused specs
config.filter_run :focused => true
config.alias_example_to :fit, :focused => true
config.alias_example_to :pit, :pending => true
config.run_all_when_everything_filtered = true
end

0 comments on commit d3b1ea1

Please sign in to comment.