mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Bump stimulus_reflex_testing to latest
It contains a fix for stimulus_reflex 3.5.0-rc4, but hasn't been released yet. https://github.com/podia/stimulus_reflex_testing/issues/21 Now the user reflex spec works, but the products spec needs another fix. But we plan to remove it soon anyway.
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -164,7 +164,7 @@ group :test, :development do
|
||||
gem 'rspec-sql'
|
||||
gem 'rswag'
|
||||
gem 'shoulda-matchers'
|
||||
gem 'stimulus_reflex_testing'
|
||||
gem 'stimulus_reflex_testing', github: "podia/stimulus_reflex_testing", branch: :main
|
||||
gem 'timecop'
|
||||
end
|
||||
|
||||
|
||||
12
Gemfile.lock
12
Gemfile.lock
@@ -17,6 +17,14 @@ GIT
|
||||
sass-rails
|
||||
thor (>= 0.14)
|
||||
|
||||
GIT
|
||||
remote: https://github.com/podia/stimulus_reflex_testing.git
|
||||
revision: abac2ee34de347c589795b4d1a8e83e0baafb201
|
||||
branch: main
|
||||
specs:
|
||||
stimulus_reflex_testing (0.3.1)
|
||||
stimulus_reflex (>= 3.3.0)
|
||||
|
||||
PATH
|
||||
remote: engines/catalog
|
||||
specs:
|
||||
@@ -750,8 +758,6 @@ GEM
|
||||
rack (>= 2, < 4)
|
||||
railties (>= 5.2, < 8)
|
||||
redis (>= 4.0, < 6.0)
|
||||
stimulus_reflex_testing (0.3.0)
|
||||
stimulus_reflex (>= 3.3.0)
|
||||
stringex (2.8.6)
|
||||
stringio (3.1.0)
|
||||
stripe (11.1.0)
|
||||
@@ -952,7 +958,7 @@ DEPENDENCIES
|
||||
spring-commands-rubocop
|
||||
state_machines-activerecord
|
||||
stimulus_reflex (= 3.5.0.rc4)
|
||||
stimulus_reflex_testing
|
||||
stimulus_reflex_testing!
|
||||
stringex (~> 2.8.5)
|
||||
stripe
|
||||
timecop
|
||||
|
||||
@@ -10,7 +10,7 @@ RSpec.describe ProductsReflex, type: :reflex, feature: :admin_style_v3 do
|
||||
let(:flash) { {} }
|
||||
|
||||
before do
|
||||
pending "https://github.com/podia/stimulus_reflex_testing/issues/21"
|
||||
pending "fix spec"
|
||||
# Mock flash, because stimulus_reflex_testing doesn't support sessions
|
||||
allow_any_instance_of(described_class).to receive(:flash).and_return(flash)
|
||||
end
|
||||
|
||||
@@ -6,8 +6,6 @@ RSpec.describe UserReflex, type: :reflex do
|
||||
let(:current_user) { create(:user) }
|
||||
let(:context) { { url: spree.admin_dashboard_url, connection: { current_user: } } }
|
||||
|
||||
before { pending "https://github.com/podia/stimulus_reflex_testing/issues/21" }
|
||||
|
||||
describe "#accept_terms_of_services" do
|
||||
subject(:reflex) { build_reflex(method_name: :accept_terms_of_services, **context) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user