Module: Wrong
- Extended by:
- Assert, Helpers
- Includes:
- Assert, Helpers
- Included in:
- RSpec::Core::ExampleGroup, Test::Unit::TestCase
- Defined in:
- lib/wrong.rb,
lib/wrong/d.rb,
lib/wrong/chunk.rb,
lib/wrong/assert.rb,
lib/wrong/config.rb,
lib/wrong/helpers.rb,
lib/wrong/version.rb,
lib/wrong/close_to.rb,
lib/wrong/failure_message.rb,
lib/wrong/message/array_diff.rb,
lib/wrong/message/test_context.rb,
lib/wrong/message/string_comparison.rb
Defined Under Namespace
Modules: Assert, CloseTo, D, Helpers
Classes: ArrayDiff, Chunk, Config, FailureMessage, StringComparison, StringComparisonFormatter
Constant Summary
collapse
- VERSION =
"0.4.4"
Class Method Summary
collapse
Methods included from Assert
assert, deny, failure_class, failure_message
Methods included from Helpers
capturing, rescuing
Class Method Details
14
15
16
|
# File 'lib/wrong/config.rb', line 14
def self.config
@config ||= load_config
end
|
.config=(new_config) ⇒ Object
18
19
20
|
# File 'lib/wrong/config.rb', line 18
def self.config=(new_config)
@config = load_config
end
|
.load_config ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/wrong/config.rb', line 4
def self.load_config
settings = begin
Chunk.read_here_or_higher(".wrong")
rescue Errno::ENOENT => e
nil end
Config.new settings
end
|