Skip to content

Commit

Permalink
because tests
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed May 3, 2024
1 parent 91b0fe7 commit 54afd30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ def self.handles?(uri)

describe Launchy::Application do
it "registers inherited classes" do
# rubocop:disable Lint/ConstantDefinitionInBlock
class Junk2App < Launchy::Application
def self.handles?(uri)
uri.scheme == "junk2"
end
end
# rubocop:enable Lint/ConstantDefinitionInBlock
_(Launchy::Application.children).must_include(Junk2App)
Launchy::Application.children.delete(Junk2App)
end
Expand Down

0 comments on commit 54afd30

Please sign in to comment.