diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2020-11-28 22:42:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 22:42:42 +0800 |
commit | a619cfba12b1b86acc884a98a4d107b4582ad45e (patch) | |
tree | 0707d4e50e5be3711b2578af80b0590f7b84580e /spec | |
parent | 845cd6d4efd5eac5884058b4685ef575f0227b0f (diff) | |
parent | 69019763876ef45f2e034f5023c7f5e5cb195995 (diff) | |
download | pry-a619cfba12b1b86acc884a98a4d107b4582ad45e.tar.gz |
Merge pull request #2119 from mvz/issue-1241-remove-autoloading-of-plugins
Remove autoloading of plugins
Diffstat (limited to 'spec')
-rw-r--r-- | spec/cli_spec.rb | 15 | ||||
-rw-r--r-- | spec/config_spec.rb | 1 |
2 files changed, 0 insertions, 16 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) } |