class Object

A little bit of monkey-patch so we can have context available anywhere.

Public Instance Methods

context(description, context_class = Riot::Context, &definition) click to toggle source

Defining context in Object itself lets us define a root context in any file. Any context defined within a context is already handled by {Riot::Context#context}.

@param (see Riot.context) @return (see Riot.context)

# File lib/riot.rb, line 141
def context(description, context_class = Riot::Context, &definition)
  Riot.context(description, context_class, &definition)
end
Also aliased as: describe
describe(description, context_class = Riot::Context, &definition)
Alias for: context