diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/cli_spec.rb | 15 | ||||
-rw-r--r-- | spec/config_spec.rb | 1 | ||||
-rw-r--r-- | spec/integration/bundler_spec.rb | 3 | ||||
-rw-r--r-- | spec/syntax_checking_spec.rb | 2 |
4 files changed, 3 insertions, 18 deletions
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index 93625f79..39d6c7a2 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -41,21 +41,6 @@ RSpec.describe Pry::CLI do end end - describe ".add_plugin_options" do - it "returns self" do - expect(described_class.add_plugin_options).to eq(described_class) - end - - it "loads cli options of plugins" do - plugin_mock = double - expect(plugin_mock).to receive(:load_cli_options) - plugins = { 'pry-testplugin' => plugin_mock } - expect(Pry).to receive(:plugins).and_return(plugins) - - described_class.add_plugin_options - end - end - describe ".add_option_processor" do it "returns self" do expect(described_class.add_option_processor {}).to eq(described_class) diff --git a/spec/config_spec.rb b/spec/config_spec.rb index f1cf5ea6..4018a1db 100644 --- a/spec/config_spec.rb +++ b/spec/config_spec.rb @@ -28,7 +28,6 @@ RSpec.describe Pry::Config do specify { expect(subject.output_prefix).to be_a(String) } specify { expect(subject.requires).to be_an(Array) } specify { expect(subject.should_load_requires).to be(true).or be(false) } - specify { expect(subject.should_load_plugins).to be(true).or be(false) } specify { expect(subject.windows_console_warning).to be(true).or be(false) } specify { expect(subject.control_d_handler).to respond_to(:call) } specify { expect(subject.memory_size).to be_a(Numeric) } diff --git a/spec/integration/bundler_spec.rb b/spec/integration/bundler_spec.rb index 2c4f2b27..224616c2 100644 --- a/spec/integration/bundler_spec.rb +++ b/spec/integration/bundler_spec.rb @@ -9,8 +9,9 @@ RSpec.describe 'Bundler' do context "when Pry requires Gemfile, which doesn't specify Pry as a dependency" do it "loads auto-completion correctly" do code = <<-RUBY - require "pry" + require "bundler" require "bundler/inline" + require "pry" # Silence the "The Gemfile specifies no dependencies" warning class Bundler::UI::Shell diff --git a/spec/syntax_checking_spec.rb b/spec/syntax_checking_spec.rb index ca75ba9f..beba497f 100644 --- a/spec/syntax_checking_spec.rb +++ b/spec/syntax_checking_spec.rb @@ -36,7 +36,7 @@ describe Pry do ["o = Object.new.tap{ def o.render;", "'MEH'", "}"], # multiple syntax errors reported in one SyntaxException - ["puts {'key'=>'val'}.to_json"] + ["puts {key: 'val'}.to_json"] ].compact.each do |foo| it "should raise an error on invalid syntax like #{foo.inspect}" do redirect_pry_io(InputTester.new(*foo), @str_output) do |