File tree 5 files changed +7
-5
lines changed
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
sudo : false
2
2
language : ruby
3
3
bundler_args : --path vendor/bundle --jobs=3 --retry=3
4
- script : bundle exec rspec
4
+ script : bundle exec ruby -w -S rspec
5
5
cache : bundler
6
6
7
7
before_install :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def create_directories(*dirs)
59
59
60
60
# Add the 'app' directory if we're running within rails.
61
61
def set_code_dirs
62
- @directories [ "code_dirs" ] = %w( app lib ) . select { |dir | Dir . exists ?( dir ) }
62
+ @directories [ "code_dirs" ] = %w( app lib ) . select { |dir | Dir . exist ?( dir ) }
63
63
end
64
64
end
65
65
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def erb_file?(filename)
84
84
end
85
85
86
86
def file_not_exists? ( filename )
87
- !File . exists ?( filename )
87
+ !File . exist ?( filename )
88
88
end
89
89
90
90
def sort_methods ( methods )
Original file line number Diff line number Diff line change 39
39
40
40
if app_warnings . any?
41
41
puts <<-WARNINGS
42
+
42
43
#{ '-' * 30 } app warnings: #{ '-' * 30 }
43
44
44
45
#{ app_warnings . join ( "\n " ) }
45
46
46
47
#{ '-' * 75 }
48
+
47
49
WARNINGS
48
50
49
51
abort "Failing build due to app warnings: #{ app_warnings . inspect } "
Original file line number Diff line number Diff line change 6
6
describe SimpleCov ::Formatter ::MetricFu do
7
7
before do
8
8
@rcov_file = subject . coverage_file_path
9
- File . delete ( @rcov_file ) if File . exists ?( @rcov_file )
9
+ File . delete ( @rcov_file ) if File . exist ?( @rcov_file )
10
10
11
11
@result = SimpleCov ::Result . new (
12
12
19
19
it "test_format" do
20
20
SimpleCov ::Formatter ::MetricFu . new . format ( @result )
21
21
22
- expect ( File . exists ?( @rcov_file ) ) . to be_truthy
22
+ expect ( File . exist ?( @rcov_file ) ) . to be_truthy
23
23
end
24
24
25
25
if SimpleCov . running
You can’t perform that action at this time.
0 commit comments