Skip to content

Commit

Permalink
[spec] use latest rspec version
Browse files Browse the repository at this point in the history
  • Loading branch information
igor47 committed Jan 16, 2015
1 parent 37902be commit c8120f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -39,7 +39,7 @@ GEM
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rake (10.4.2)
rake (10.1.1)
rspec (3.1.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
Expand Down Expand Up @@ -69,4 +69,4 @@ DEPENDENCIES
nerve!
pry
rake
rspec
rspec (~> 3.1.0)
2 changes: 1 addition & 1 deletion nerve.gemspec
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency "etcd", "~> 0.2.3"

gem.add_development_dependency "rake"
gem.add_development_dependency "rspec"
gem.add_development_dependency "rspec", "~> 3.1.0"
gem.add_development_dependency "factory_girl"
gem.add_development_dependency "pry"
end
7 changes: 6 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -10,11 +10,16 @@
FactoryGirl.find_definitions

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
config.include Config

# verify every double we can think of
config.mock_with :rspec do |mocks|
mocks.verify_doubled_constant_names = true
mocks.verify_partial_doubles = true
end

# include factory-girl when running tests
config.include FactoryGirl::Syntax::Methods

Expand Down

0 comments on commit c8120f3

Please sign in to comment.