Permalink
Browse files

Upgrade to RSpec 3.0.0.rc1

  • Loading branch information...
1 parent 268402a commit 5ca8216907634acc0e7568806a9ba7ef06d7f866 @stevenharman committed May 21, 2014
Showing with 4 additions and 5 deletions.
  1. +1 −1 git_tracker.gemspec
  2. +1 −1 spec/git_tracker/branch_spec.rb
  3. +0 −1 spec/spec_helper.rb
  4. +2 −2 spec/support/matchers/exit_code_matchers.rb
View
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
better... and easier... um, besier!
EOF
- gem.add_development_dependency 'rspec', '~> 2.14'
+ gem.add_development_dependency 'rspec', '~> 3.0.0.rc1'
gem.add_development_dependency 'activesupport', '~> 3.2'
gem.add_development_dependency 'pry', '~> 0.9.11'
# Use Rake < 10.2 (requires Ruby 1.9+) until we drop Ruby 1.8.7 support
@@ -46,7 +46,7 @@ def stub_branch(ref, exit_status = 0)
stub_branch('refs/heads/stevenharman/got-her-number-8675309')
expect(branch.story_number).to eq('8675309')
end
-
+
it 'finds the story in a branch with a version number' do
stub_branch('refs/heads/stevenharman/v2.0-got-her-number-8675309')
expect(branch.story_number).to eq('8675309')
View
@@ -6,7 +6,6 @@
Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each {|f| require f }
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
end
@@ -12,12 +12,12 @@
actual and actual == successful_exit_code
end
- failure_message_for_should do |block|
+ failure_message do |block|
"expected block to call exit(#{successful_exit_code}) but exit" +
(actual.nil? ? ' not called' : "(#{actual}) was called")
end
- failure_message_for_should_not do |block|
+ failure_message_when_negated do |block|
"expected block not to call exit(#{successful_exit_code})"
end

0 comments on commit 5ca8216

Please sign in to comment.