Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update rspec/mocha;

  • Loading branch information...
commit cc38923fb62b5bb979cb2f6f650c3770d6d2f50c 1 parent dc505f8
Rob Sanheim rsanheim authored
Showing with 8 additions and 7 deletions.
  1. +1 −0  .rvmrc
  2. +2 −2 Rakefile
  3. +5 −5 spec/log_buddy/spec_helper.rb
1  .rvmrc
View
@@ -0,0 +1 @@
+rvm use ruby-1.9.2-p0
4 Rakefile
View
@@ -11,8 +11,8 @@ begin
gem.email = "rsanheim@gmail.com"
gem.homepage = "http://github.com/relevance/log_buddy"
gem.authors = ["Rob Sanheim"]
- gem.add_development_dependency "rspec", "~> 2.0.0.beta.8"
- gem.add_development_dependency "mocha", "~> 0.9.0"
+ gem.add_development_dependency "rspec", "~> 2.2"
+ gem.add_development_dependency "mocha", "~> 0.9"
end
Jeweler::GemcutterTasks.new
rescue LoadError
10 spec/log_buddy/spec_helper.rb
View
@@ -1,6 +1,6 @@
require "logger"
-require "mocha"
require "rspec"
+require "mocha"
require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "log_buddy"))
def silence_warnings
@@ -11,10 +11,10 @@ def silence_warnings
end
Rspec.configure do |config|
- config.mock_with :mocha
- config.formatter = :documentation
+ config.filter_run :focused => true
+ config.run_all_when_everything_filtered = true
config.color_enabled = true
config.alias_example_to :fit, :focused => true
- config.filter_run :options => { :focused => true }
- config.run_all_when_everything_filtered = true
+ config.formatter = :documentation
+ config.mock_with :mocha
end
Please sign in to comment.
Something went wrong with that request. Please try again.