File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 4
4
require_relative 'integration_helper'
5
5
6
6
describe 'Integration testing on Rails 5.2.4.1' , if : IntegrationHelper . able_to_run? ( __FILE__ , RUBY_VERSION ) do
7
- ::APP_NAME = 'rails_5.2.4.1' . freeze
8
- ::PROJECT_PATH = File . expand_path ( '../..' , __dir__ )
9
- ::APP_PATH = File . expand_path ( APP_NAME , __dir__ )
7
+ ::RAILS_5_2_APP_NAME = 'rails_5.2.4.1' . freeze
8
+ ::RAILS_5_2_PROJECT_PATH = File . expand_path ( '../..' , __dir__ ) . freeze
9
+ ::RAILS_5_2_APP_PATH = File . expand_path ( RAILS_5_2_APP_NAME , __dir__ ) . freeze
10
10
11
- let! ( :git ) { Git . open ( PROJECT_PATH ) }
11
+ let! ( :git ) { Git . open ( RAILS_5_2_PROJECT_PATH ) }
12
12
13
13
before ( :all ) do
14
14
Bundler . with_clean_env do
15
- Dir . chdir APP_PATH do
15
+ Dir . chdir RAILS_5_2_APP_PATH do
16
16
puts `bundle install`
17
17
puts `bin/rails db:migrate`
18
18
end
92
92
93
93
it 'annotate models' do
94
94
Bundler . with_clean_env do
95
- Dir . chdir APP_PATH do
95
+ Dir . chdir RAILS_5_2_APP_PATH do
96
96
expect ( git . diff . any? ) . to be_falsy
97
97
98
98
puts `#{ command } `
142
142
143
143
it 'annotate routes.rb' do
144
144
Bundler . with_clean_env do
145
- Dir . chdir APP_PATH do
145
+ Dir . chdir RAILS_5_2_APP_PATH do
146
146
expect ( git . diff . any? ) . to be_falsy
147
147
148
148
puts `#{ command } `
Original file line number Diff line number Diff line change 4
4
require_relative 'integration_helper'
5
5
6
6
describe 'Integration testing on Rails 6.0.2.1' , if : IntegrationHelper . able_to_run? ( __FILE__ , RUBY_VERSION ) do
7
- ::APP_NAME = 'rails_6.0.2.1' . freeze
8
- ::PROJECT_PATH = File . expand_path ( '../..' , __dir__ )
9
- ::APP_PATH = File . expand_path ( APP_NAME , __dir__ )
7
+ ::RAILS_6_0_APP_NAME = 'rails_6.0.2.1' . freeze
8
+ ::RAILS_6_0_PROJECT_PATH = File . expand_path ( '../..' , __dir__ ) . freeze
9
+ ::RAILS_6_0_APP_PATH = File . expand_path ( RAILS_6_0_APP_NAME , __dir__ ) . freeze
10
10
11
- let! ( :git ) { Git . open ( PROJECT_PATH ) }
11
+ let! ( :git ) { Git . open ( RAILS_6_0_PROJECT_PATH ) }
12
12
13
13
before ( :all ) do
14
14
Bundler . with_clean_env do
15
- Dir . chdir APP_PATH do
15
+ Dir . chdir RAILS_6_0_APP_PATH do
16
16
puts `bundle install`
17
17
puts `bin/rails db:migrate`
18
18
end
92
92
93
93
it 'annotate models' do
94
94
Bundler . with_clean_env do
95
- Dir . chdir APP_PATH do
95
+ Dir . chdir RAILS_6_0_APP_PATH do
96
96
expect ( git . diff . any? ) . to be_falsy
97
97
98
98
puts `#{ command } `
157
157
158
158
it 'annotate routes.rb' do
159
159
Bundler . with_clean_env do
160
- Dir . chdir APP_PATH do
160
+ Dir . chdir RAILS_6_0_APP_PATH do
161
161
expect ( git . diff . any? ) . to be_falsy
162
162
163
163
puts `#{ command } `
You can’t perform that action at this time.
0 commit comments