Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgrade to RSpec 3.0.0.rc1

  • Loading branch information...
commit 5ca8216907634acc0e7568806a9ba7ef06d7f866 1 parent 268402a
@stevenharman authored
View
2  git_tracker.gemspec
@@ -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
View
2  spec/git_tracker/branch_spec.rb
@@ -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
1  spec/spec_helper.rb
@@ -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
View
4 spec/support/matchers/exit_code_matchers.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.