Skip to content

Commit

Permalink
Minor fixes to spec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed May 20, 2024
1 parent ef0400b commit 6750252
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ group :test do
gem "devise"
end

gem "rails", "~> 7.1.0"
gem "sassc-rails"

gem "rake", "~> 12.0"

gem "trestle", github: "TrestleAdmin/trestle"
11 changes: 1 addition & 10 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@
module Dummy
class Application < Rails::Application
# Initialize configuration defaults for current Rails version.
case Rails.version.split(".").first(2).join(".")
when '7.1'
config.load_defaults 7.1
when '7.0'
config.load_defaults 7.0
when '6.0'
config.load_defaults 6.0
when '5.2'
config.load_defaults 5.2
end
config.load_defaults Rails::VERSION::STRING.to_f

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
Expand Down
1 change: 1 addition & 0 deletions spec/dummy/config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = '643d9da568171253dab3254fd2e7bd552cc5fbdc41d25a71b94ceb1897c4801bd0ef7fb8a3cdc5ca8c5c2a37d8b9f02c9d330bed3c1cd73027f7f8cfdc9b4477'
config.secret_key = Rails.application.secret_key_base

# ==> Controller configuration
# Configure the parent class to the devise controllers.
Expand Down
3 changes: 0 additions & 3 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
end

RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"

# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
Expand Down

0 comments on commit 6750252

Please sign in to comment.