-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add a SQLite job to the CI #4525
Changes from all commits
ba41130
5cdc40b
5ceb789
2888203
c6a1967
e81727d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,8 +82,6 @@ module Spree::Api | |
end | ||
|
||
it "can update addresses and transition from address to delivery" do | ||
pending "SQLite adapter fails to provide a unique index" if ActiveRecord::Base.connection.adapter_name == "SQLite" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I confirmed with the Docker setup that the tests are green now 🍀 |
||
|
||
put spree.api_checkout_path(order), | ||
params: { order_token: order.guest_token, order: { | ||
bill_address_attributes: address, | ||
|
@@ -109,8 +107,6 @@ module Spree::Api | |
|
||
# Regression test for https://github.com/spree/spree/issues/4498 | ||
it "does not contain duplicate variant data in delivery return" do | ||
pending "SQLite adapter fails to provide a unique index" if ActiveRecord::Base.connection.adapter_name == "SQLite" | ||
|
||
put spree.api_checkout_path(order), | ||
params: { order_token: order.guest_token, order: { | ||
bill_address_attributes: address, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,9 +35,10 @@ module Spree::Api | |
expect(json_response['email']).to eq '[email protected]' | ||
end | ||
|
||
# there's no validations on LegacyUser? | ||
xit "cannot create a new user with invalid attributes" do | ||
post spree.api_users_path, params: { user: {}, token: user.spree_api_key } | ||
it "cannot create a new user with invalid attributes" do | ||
allow_any_instance_of(Spree::LegacyUser).to receive(:save).and_return(false) | ||
|
||
post spree.api_users_path, params: { user: { email: '[email protected]' }, token: user.spree_api_key } | ||
expect(response.status).to eq(422) | ||
expect(json_response["error"]).to eq("Invalid resource. Please fix errors and try again.") | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ def self.setup(gem_root:, lib_name:, auto_migrate: true) | |
ENV["LIB_NAME"] = lib_name | ||
DummyApp::Application.config.root = File.join(gem_root, 'spec', 'dummy') | ||
|
||
DummyApp::Application.initialize! | ||
DummyApp::Application.initialize! unless DummyApp::Application.initialized? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❤️ |
||
|
||
if auto_migrate | ||
DummyApp::Migrations.auto_migrate | ||
|
@@ -116,6 +116,7 @@ class Application < ::Rails::Application | |
end | ||
config.paths['db/migrate'] = migration_dirs | ||
ActiveRecord::Migrator.migrations_paths = migration_dirs | ||
ActiveRecord::Migration.verbose = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❤️ |
||
|
||
config.assets.paths << File.expand_path('dummy_app/assets/javascripts', __dir__) | ||
config.assets.paths << File.expand_path('dummy_app/assets/stylesheets', __dir__) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should add this to the https://github.com/solidusio/circleci-orbs-extensions repo as well so extensions also can opt-in to running specs against SQLite on CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in solidusio/circleci-orbs-extensions#48, will be released in v0.4.0