File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2019-10-02 17:54:14 +0200 using RuboCop version 0.68.1.
3
+ # on 2019-10-09 14:16:04 +0200 using RuboCop version 0.68.1.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
Original file line number Diff line number Diff line change 17
17
18
18
desc 'Run RuboCop'
19
19
task :rubocop do
20
- next unless RUBY_VERSION >= '2.0.0'
21
-
22
20
require 'rubocop/rake_task'
23
21
RuboCop ::RakeTask . new
24
22
end
@@ -33,11 +31,7 @@ desc 'Generate dummy application for test cases'
33
31
task :dummy_generate do
34
32
Rake ::Task [ :dummy_remove ] . invoke
35
33
puts 'Creating dummy application to run tests'
36
- if Rails ::VERSION ::MAJOR > 2
37
- system ( 'rails new test/dummy --database=sqlite3' )
38
- else
39
- system ( 'rails test/dummy' )
40
- end
34
+ system ( 'rails new test/dummy --database=sqlite3' )
41
35
system ( 'touch test/dummy/db/schema.rb' )
42
36
FileUtils . cp 'test/fixtures/database.yml' , 'test/dummy/config/'
43
37
FileUtils . rm_r Dir . glob ( 'test/dummy/test/*' )
You can’t perform that action at this time.
0 commit comments