Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnigns raised on Ruby 2.6 #75

Merged
merged 4 commits into from Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions bogus.gemspec
Expand Up @@ -12,8 +12,6 @@ Gem::Specification.new do |s|
s.summary = %q{Create fakes to make your isolated unit tests reliable.}
s.description = %q{Decreases the need to write integration tests by ensuring that the things you stub or mock actually exist.}

s.rubyforge_project = "bogus"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
Expand All @@ -36,7 +34,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'coveralls'
s.add_development_dependency 'wwtd'

s.add_development_dependency 'activerecord', '>= 3', '< 5'
s.add_development_dependency 'activerecord', '>= 3', '< 7'
s.add_development_dependency 'activerecord-nulldb-adapter'

s.add_development_dependency 'minitest', '>= 4.7'
Expand Down
2 changes: 1 addition & 1 deletion spec/bogus/fakes/fake_configuration_spec.rb
Expand Up @@ -81,7 +81,7 @@ def stubs(name)
end

block = stubs(:foo)[:bar]
expect{ block.call }.to raise_error
expect{ block.call }.to raise_error RuntimeError
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/bogus/stubbing/double_spec.rb
Expand Up @@ -14,7 +14,7 @@ module Bogus

expect {
double_instance.stub.foo("a", "b") { "the result" }
}.to raise_error
}.to raise_error NameError

expect(double_tracker).not_to have_received(:track).with(object)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
@@ -1,9 +1,9 @@
require 'simplecov'
begin
require "coveralls"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter]
Coveralls::SimpleCov::Formatter])
rescue LoadError
warn "warning: coveralls gem not found; skipping Coveralls"
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
Expand Down