-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load defaults for the latest Rails minor version in the dummy app
Before this change, the dummy app used in the test suite was not loading any new default that Rails has added since 5.0. However, we still use old defaults for three settings that make our test suite fail. Each one of them will be worked out in individual commits. See https://api.rubyonrails.org/classes/Rails/Application/Configuration.html#method-i-load_defaults
- Loading branch information
1 parent
d4174a8
commit f746923
Showing
2 changed files
with
18 additions
and
0 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
12 changes: 12 additions & 0 deletions
12
core/spec/lib/spree/core/testing_support/dummy_app_spec.rb
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe DummyApp do | ||
it 'loads default from the Rails version in use' do | ||
expect( | ||
DummyApp::Application.config.loaded_config_version | ||
).to eq("#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}") | ||
end | ||
end | ||
|