louis 2.0.8 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/Rakefile +4 -6
- data/data/processed_data.json +1 -1
- data/lib/louis.rb +2 -4
- data/lib/louis/const.rb +3 -3
- data/lib/louis/helpers.rb +9 -8
- data/lib/louis/version.rb +1 -1
- data/louis.gemspec +11 -10
- metadata +37 -41
- data/spec/louis_spec.rb +0 -96
- data/spec/spec_helper.rb +0 -45
data/spec/spec_helper.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
base_path = File.expand_path(File.join(File.basename(__FILE__), '..', 'lib'))
|
2
|
-
$LOAD_PATH.unshift(base_path) unless $LOAD_PATH.include?(base_path)
|
3
|
-
|
4
|
-
require 'rspec'
|
5
|
-
require 'simplecov'
|
6
|
-
require 'coveralls'
|
7
|
-
|
8
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
9
|
-
SimpleCov::Formatter::HTMLFormatter,
|
10
|
-
Coveralls::SimpleCov::Formatter
|
11
|
-
]
|
12
|
-
|
13
|
-
SimpleCov.add_filter '/spec/'
|
14
|
-
SimpleCov.add_filter do |source_file|
|
15
|
-
source_file.lines.count < 3
|
16
|
-
end
|
17
|
-
|
18
|
-
SimpleCov.start
|
19
|
-
|
20
|
-
require 'louis'
|
21
|
-
|
22
|
-
RSpec.configure do |config|
|
23
|
-
config.expect_with :rspec do |expectations|
|
24
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
25
|
-
end
|
26
|
-
|
27
|
-
config.mock_with :rspec do |mocks|
|
28
|
-
mocks.verify_partial_doubles = true
|
29
|
-
mocks.verify_doubled_constant_names = true
|
30
|
-
end
|
31
|
-
|
32
|
-
config.filter_run :focus
|
33
|
-
config.run_all_when_everything_filtered = true
|
34
|
-
config.disable_monkey_patching!
|
35
|
-
config.warnings = true
|
36
|
-
|
37
|
-
if config.files_to_run.one?
|
38
|
-
config.default_formatter = 'doc'
|
39
|
-
end
|
40
|
-
|
41
|
-
config.profile_examples = 3
|
42
|
-
config.order = :random
|
43
|
-
|
44
|
-
Kernel.srand(config.seed)
|
45
|
-
end
|