Skip to content

Commit

Permalink
feat(feature): introduce initial feature
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Apr 1, 2023
1 parent a905b6e commit 7413273
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/convenient_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
#
require_relative "convenient_service/services"

##
# @internal
# Convenient Service Feature.
#
require_relative "convenient_service/feature"

##
# @internal
# Convenient Service Aliases.
Expand Down
8 changes: 8 additions & 0 deletions lib/convenient_service/feature.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

module ConvenientService
module Feature
include Support::DependencyContainer::Entry
include Support::DependencyContainer::Export
end
end
16 changes: 16 additions & 0 deletions spec/lib/convenient_service/feature_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require "spec_helper"

require "convenient_service"

RSpec.describe ConvenientService::Feature do
example_group "modules" do
include ConvenientService::RSpec::Matchers::IncludeModule

subject { described_class }

it { is_expected.to include_module(ConvenientService::Support::DependencyContainer::Entry) }
it { is_expected.to include_module(ConvenientService::Support::DependencyContainer::Export) }
end
end

0 comments on commit 7413273

Please sign in to comment.