-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from koic/update_testing_context
Update testing context for Rails versions
- Loading branch information
Showing
8 changed files
with
39 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.shared_context 'with Rails 4', :rails4 do | ||
RSpec.shared_context 'with Rails 4.0', :rails40 do | ||
let(:rails_version) { 4.0 } | ||
end | ||
|
||
RSpec.shared_context 'with Rails 5', :rails5 do | ||
RSpec.shared_context 'with Rails 4.1', :rails41 do | ||
let(:rails_version) { 4.1 } | ||
end | ||
|
||
RSpec.shared_context 'with Rails 4.2', :rails42 do | ||
let(:rails_version) { 4.2 } | ||
end | ||
|
||
RSpec.shared_context 'with Rails 5.0', :rails50 do | ||
let(:rails_version) { 5.0 } | ||
end | ||
|
||
RSpec.shared_context 'with Rails 5.1', :rails51 do | ||
let(:rails_version) { 5.1 } | ||
end | ||
|
||
RSpec.shared_context 'with Rails 5.2', :rails52 do | ||
let(:rails_version) { 5.2 } | ||
end | ||
|
||
RSpec.shared_context 'with Rails 6.0', :rails60 do | ||
let(:rails_version) { 6.0 } | ||
end |