diff options
Diffstat (limited to 'spec/unit/mixin/versioned_api_spec.rb')
-rw-r--r-- | spec/unit/mixin/versioned_api_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/mixin/versioned_api_spec.rb b/spec/unit/mixin/versioned_api_spec.rb index c709871919..e8b65158c4 100644 --- a/spec/unit/mixin/versioned_api_spec.rb +++ b/spec/unit/mixin/versioned_api_spec.rb @@ -100,6 +100,14 @@ describe Chef::Mixin::VersionedAPIFactory do end end + describe "#possible_requests" do + it "returns the number of registered classes" do + factory_class.add_versioned_api_class V2Class + factory_class.add_versioned_api_class V3Class + expect(factory_class.possible_requests).to eq(2) + end + end + describe "#new" do it "creates an instance of the versioned class" do factory_class.add_versioned_api_class V2Class |