Module: ChefSpec::API

Defined in:
lib/chefspec/api.rb,
lib/chefspec/api/core.rb,
lib/chefspec/api/link.rb,
lib/chefspec/api/user.rb,
lib/chefspec/api/stubs.rb,
lib/chefspec/api/reboot.rb,
lib/chefspec/api/described.rb,
lib/chefspec/api/stubs_for.rb,
lib/chefspec/api/do_nothing.rb,
lib/chefspec/api/render_file.rb,
lib/chefspec/api/state_attrs.rb,
lib/chefspec/api/notifications.rb,
lib/chefspec/api/subscriptions.rb,
lib/chefspec/api/include_recipe.rb,
lib/chefspec/api/include_any_recipe.rb

Defined Under Namespace

Modules: Core, Described, DoNothing, IncludeAnyRecipe, IncludeRecipe, Link, Notifications, Reboot, RenderFile, StateAttrs, Stubs, StubsFor, Subscriptions, User

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/chefspec/api.rb', line 18

def self.included(klass)
  # non-resources
  klass.include(ChefSpec::API::Core)
  klass.include(ChefSpec::API::Described)
  klass.include(ChefSpec::API::DoNothing)
  klass.include(ChefSpec::API::IncludeAnyRecipe)
  klass.include(ChefSpec::API::IncludeRecipe)
  klass.include(ChefSpec::API::DoNothing)
  klass.include(ChefSpec::API::RenderFile)
  klass.include(ChefSpec::API::StateAttrs)
  klass.include(ChefSpec::API::Notifications)
  klass.include(ChefSpec::API::Stubs)
  klass.include(ChefSpec::API::StubsFor)
  klass.include(ChefSpec::API::Subscriptions)

  # hacks and sugar for resources that don't follow the normal pattern
  klass.include(ChefSpec::API::User)
  klass.include(ChefSpec::API::Link)
  klass.include(ChefSpec::API::Reboot)
end