diff --git a/committee.gemspec b/committee.gemspec index 9a224444..96e5511f 100644 --- a/committee.gemspec +++ b/committee.gemspec @@ -28,7 +28,6 @@ Gem::Specification.new do |s| s.add_development_dependency "minitest", "~> 5.3" s.add_development_dependency "rack-test", "~> 0.8" s.add_development_dependency "rake", "~> 13.1" - s.add_development_dependency "rr", "~> 1.1" s.add_development_dependency "pry" s.add_development_dependency "pry-byebug" s.add_development_dependency "rubocop" diff --git a/test/committee_test.rb b/test/committee_test.rb index 8ebd28f5..952c7faa 100644 --- a/test/committee_test.rb +++ b/test/committee_test.rb @@ -19,13 +19,15 @@ old_stderr = $stderr $stderr = StringIO.new begin - stub(Committee).debug? { false } - Committee.log_debug "blah" - assert_equal "", $stderr.string + Committee.stub(:debug?, false) do + Committee.log_debug "blah" + assert_equal "", $stderr.string + end - stub(Committee).debug? { true } - Committee.log_debug "blah" - assert_equal "blah\n", $stderr.string + Committee.stub(:debug?, true) do + Committee.log_debug "blah" + assert_equal "blah\n", $stderr.string + end ensure $stderr = old_stderr end diff --git a/test/test_helper.rb b/test/test_helper.rb index d7d009b0..5221c58d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -21,7 +21,6 @@ require "minitest/spec" require "minitest/autorun" require "rack/test" -require "rr" require "pry" require "stringio"