module Lopata
Namespace for all Lopata
code.
Constants
- FAILED
@private
- PASSED
@private
- PENDING
@private
- SKIPPED
@private
Public Class Methods
configuration()
click to toggle source
Returns global configuration object. @return [Lopata::Configuration] @see Lopata.configure
# File lib/lopata.rb, line 107 def self.configuration @configuration ||= Lopata::Configuration.new end
configure() { |configuration| ... }
click to toggle source
Yields the global configuration to a block. @yield [Lopata::Configuration] global configuration
@example
Lopata.configure do |config| config.before_scenario 'setup test user' end
# File lib/lopata.rb, line 100 def self.configure(&block) yield Lopata.configuration end
define(*args, &block)
click to toggle source
Define the scenario. @see Lopata::ScenarioBuilder.define
# File lib/lopata.rb, line 13 def self.define(*args, &block) Lopata::ScenarioBuilder.define(*args, &block) end
environment()
click to toggle source
Return global environment object @return [Lopata::Environment] @see Lopata::Environment
# File lib/lopata.rb, line 120 def self.environment Lopata.configuration.environment end
world()
click to toggle source
@private Internal container for global non-configuration data.
# File lib/lopata.rb, line 113 def self.world @world ||= Lopata::World.new end
xdefine(*args, &block)
click to toggle source
Skip scenario definition. Option to temporary ignore scenario
# File lib/lopata.rb, line 18 def self.xdefine(*args, &block) end