Module: Assert
- Defined in:
- lib/assert.rb,
lib/assert/cli.rb,
lib/assert/stub.rb,
lib/assert/test.rb,
lib/assert/view.rb,
lib/assert/macro.rb,
lib/assert/suite.rb,
lib/assert/utils.rb,
lib/assert/config.rb,
lib/assert/result.rb,
lib/assert/runner.rb,
lib/assert/context.rb,
lib/assert/factory.rb,
lib/assert/version.rb,
lib/assert/file_line.rb,
lib/assert/assertions.rb,
lib/assert/context_info.rb,
lib/assert/default_view.rb,
lib/assert/view_helpers.rb,
lib/assert/assert_runner.rb,
lib/assert/default_suite.rb,
lib/assert/config_helpers.rb,
lib/assert/default_runner.rb,
lib/assert/context/test_dsl.rb,
lib/assert/context/setup_dsl.rb,
lib/assert/context/suite_dsl.rb,
lib/assert/context/subject_dsl.rb
Defined Under Namespace
Modules: Assertions, ConfigHelpers, Factory, Macros, Result, RoundedMillisecondTime, Utils, ViewHelpers
Classes: AssertRunner, CLI, CLIRB, Config, Context, ContextInfo, DefaultRunner, DefaultSuite, DefaultView, FileLine, Macro, Runner, Suite, Test, View
Constant Summary
collapse
- U =
Utils
- VERSION =
"2.16.5"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
13
|
# File 'lib/assert.rb', line 13
def self.config; @config ||= Config.new; end
|
14
|
# File 'lib/assert.rb', line 14
def self.configure; yield self.config if block_given?; end
|
.runner ⇒ Object
18
|
# File 'lib/assert.rb', line 18
def self.runner; self.config.runner; end
|
.stub(*args, &block) ⇒ Object
9
10
11
|
# File 'lib/assert/stub.rb', line 9
def self.stub(*args, &block)
MuchStub.stub(*args, &block)
end
|
.stub_send(*args, &block) ⇒ Object
21
22
23
24
25
26
27
28
29
|
# File 'lib/assert/stub.rb', line 21
def self.stub_send(*args, &block)
orig_caller = caller_locations
begin
MuchStub.stub_send(*args, &block)
rescue MuchStub::NotStubbedError => err
err.set_backtrace(orig_caller.map(&:to_s))
raise err
end
end
|
.stubs ⇒ Object
5
6
7
|
# File 'lib/assert/stub.rb', line 5
def self.stubs
MuchStub.stubs
end
|
.suite ⇒ Object
17
|
# File 'lib/assert.rb', line 17
def self.suite; self.config.suite; end
|
.unstub(*args) ⇒ Object
13
14
15
|
# File 'lib/assert/stub.rb', line 13
def self.unstub(*args)
MuchStub.unstub(*args)
end
|
.unstub! ⇒ Object
17
18
19
|
# File 'lib/assert/stub.rb', line 17
def self.unstub!
MuchStub.unstub!
end
|
.view ⇒ Object
16
|
# File 'lib/assert.rb', line 16
def self.view; self.config.view; end
|