summaryrefslogtreecommitdiff
path: root/spec/pry_defaults_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/pry_defaults_spec.rb')
-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