module IntegrationTestKit

Constants

VERSION

Public Class Methods

commands() click to toggle source
# File lib/integration_test_kit.rb, line 9
def self.commands
  @commands
end
configuration() click to toggle source
# File lib/integration_test_kit.rb, line 13
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/integration_test_kit.rb, line 17
def self.configure
  raise EnvironmentError unless Rails.env.test?
  
  yield configuration
  
  Dir[Rails.root.join(configuration.commands_load_path, '*.rb')].each do |file|
    require File.expand_path(file)
  end
end
define(&block) click to toggle source
# File lib/integration_test_kit.rb, line 35
def self.define(&block)
  registry = Registry.new
  registry.instance_eval(&block)
end
run_command(name) click to toggle source
# File lib/integration_test_kit.rb, line 27
def self.run_command(name)
  raise EnvironmentError unless Rails.env.test?
  
  @commands[name.to_sym].call

  true
end