-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relocate plugins command unit test to feature test
- Loading branch information
1 parent
261662a
commit f65f7f2
Showing
3 changed files
with
26 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
require "features/feature_helper" | ||
|
||
class TestPluginsCommand < BridgetownFeatureTest | ||
describe "list registered plugins" do | ||
before do | ||
create_directory "config" | ||
create_file "config/initializers.rb", <<~RUBY | ||
Bridgetown.configure do |config| | ||
end | ||
RUBY | ||
end | ||
|
||
it "excludes init (Initializer) from registered plugins list" do | ||
_, output = run_bridgetown "plugins", "list", trace: false | ||
output = Bridgetown::Foundation::Packages::Ansi.strip(output) | ||
|
||
refute_includes output, "init (Initializer)" | ||
assert_includes output, "Registered Plugins: 5" | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.