summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-05-28 21:14:50 +0300
committerKyrylo Silin <silin@kyrylo.org>2019-05-28 21:17:25 +0300
commit4744ec75658814fcf5b55924852dd1726c36aed9 (patch)
tree488d777f4c704b5c1342b136f2b87560b95f1035 /spec
parentcc9523dee0435d6efa8de7413ebf056a2a50854e (diff)
downloadpry-4744ec75658814fcf5b55924852dd1726c36aed9.tar.gz
spec/pry_defaults: silence unwanted deprecation warningstest-suite-silence-warnings
Diffstat (limited to 'spec')
-rw-r--r--spec/pry_defaults_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/pry_defaults_spec.rb b/spec/pry_defaults_spec.rb
index 816481ff..fa0b8c1a 100644
--- a/spec/pry_defaults_spec.rb
+++ b/spec/pry_defaults_spec.rb
@@ -13,6 +13,9 @@ describe "test Pry defaults" do
end
describe "input" do
+ # Silence deprecation warnings.
+ before { allow(Kernel).to receive(:warn) }
+
it 'should set the input default, and the default should be overridable' do
Pry.config.input = InputTester.new("5")
Pry.config.output = @str_output