Skip to content

Commit

Permalink
spec: upgrade to rspec 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yaauie committed Apr 22, 2015
1 parent 9733884 commit 2c3cc6e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cliver.gemspec
Expand Up @@ -22,8 +22,8 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', '~> 2.14'
spec.add_development_dependency 'rspec-its'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec-its', '~>1.2'
spec.add_development_dependency 'ruby-appraiser-reek' unless RUBY_18
spec.add_development_dependency 'ruby-appraiser-rubocop' unless RUBY_18
spec.add_development_dependency 'yard'
Expand Down
12 changes: 12 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -2,6 +2,18 @@

require 'rspec/its'

# Snooze button on rspec `should` syntax deprecations until 2016-07-01
unless Time.now > Time.at(1435708800)
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = [:should, :expect]
end
config.mock_with :rspec do |c|
c.syntax = [:should, :expect]
end
end
end

# 1.8.x doesn't support public_send and we use it in spec,
# so we emulate it in this monkeypatch.
class Object
Expand Down

0 comments on commit 2c3cc6e

Please sign in to comment.