Module: Micronaut

Defined in:
lib/micronaut.rb,
lib/micronaut/world.rb,
lib/micronaut/runner.rb,
lib/micronaut/example.rb,
lib/micronaut/matchers.rb,
lib/micronaut/behaviour.rb,
lib/micronaut/rake_task.rb,
lib/micronaut/formatters.rb,
lib/micronaut/matchers/be.rb,
lib/micronaut/expectations.rb,
lib/micronaut/matchers/eql.rb,
lib/micronaut/matchers/has.rb,
lib/micronaut/configuration.rb,
lib/micronaut/matchers/have.rb,
lib/micronaut/matchers/equal.rb,
lib/micronaut/matchers/match.rb,
lib/micronaut/matchers/change.rb,
lib/micronaut/mocking/with_rr.rb,
lib/micronaut/matchers/include.rb,
lib/micronaut/matchers/satisfy.rb,
lib/micronaut/kernel_extensions.rb,
lib/micronaut/matchers/be_close.rb,
lib/micronaut/mocking/with_mocha.rb,
lib/micronaut/matchers/respond_to.rb,
lib/micronaut/expectations/handler.rb,
lib/micronaut/matchers/raise_error.rb,
lib/micronaut/matchers/throw_symbol.rb,
lib/micronaut/matchers/method_missing.rb,
lib/micronaut/matchers/simple_matcher.rb,
lib/micronaut/formatters/base_formatter.rb,
lib/micronaut/matchers/operator_matcher.rb,
lib/micronaut/expectations/wrap_expectation.rb,
lib/micronaut/formatters/progress_formatter.rb,
lib/micronaut/expectations/extensions/object.rb,
lib/micronaut/formatters/base_text_formatter.rb,
lib/micronaut/matchers/generated_descriptions.rb,
lib/micronaut/mocking/with_absolutely_nothing.rb,
lib/micronaut/formatters/documentation_formatter.rb

Defined Under Namespace

Modules: Expectations, Formatters, KernelExtensions, Matchers, Mocking Classes: Behaviour, Configuration, Example, RakeTask, Runner, World

Constant Summary collapse

InstallDirectory =

‘./lib’ in project dir, or ‘/usr/local/blahblah’ if installed

File.expand_path(File.dirname(File.dirname(file)) + "/lib")

Class Method Summary collapse

Class Method Details

.configurationObject



28
29
30
# File 'lib/micronaut.rb', line 28

def self.configuration
  @configuration ||= Micronaut::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



32
33
34
# File 'lib/micronaut.rb', line 32

def self.configure
  yield configuration if block_given?
end

.worldObject



36
37
38
# File 'lib/micronaut.rb', line 36

def self.world
  @world ||= Micronaut::World.new
end