-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error initializing over rails db:schema:load #5
Comments
Add
to your |
Hi i've never placed it on application.rb only on my spec_helper.rb application.rbrequire_relative 'boot'
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "action_cable/engine"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Backend
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.1
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.api_only = true
config.time_zone = 'America/Mexico_City'
end
end Spec helper Rspec configRSpec.configure do |config|
config.include Warden::Test::Helpers
config.include Devise::Test::ControllerHelpers, type: :controller
config.include FactoryBot::Syntax::Methods
config.include Parser
config.include JSONAPI::RSpec
config.fixture_path = "#{::Rails.root}/spec/fixtures"
config.use_transactional_fixtures = true
config.infer_spec_type_from_file_location!
config.filter_rails_from_backtrace!
end |
Got the same issue trying |
I'm getting similar issues. The error goes away if I add We could add |
Same deal here. I was getting
Then I used |
This is fixed in #8 now. |
Just ran into this today using @stas's jsonapi gem, which has this as a dependancy. I was using a few of the matchers in my own specs, as well. Dockerizing the app required the above addition to the Gemfile to run specs correctly. Looks like there's a fix in, but it's been a while since anything's merged on this repo. |
Closed as part of #8 |
The text was updated successfully, but these errors were encountered: