Skip to content

Commit

Permalink
Bump with_model (forem#20222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mac Siri authored Oct 6, 2023
1 parent 282004c commit 341f64c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,6 @@ group :test do
gem "timecop", "~> 0.9" # A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code
gem "vcr", "~> 6.1" # Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests
gem "webmock", "~> 3.17", require: false # WebMock allows stubbing HTTP requests and setting expectations on HTTP requests
gem "with_model", "~> 2.1.6" # Dynamically build a model within an RSpec context
gem "with_model", "~> 2.1.7" # Dynamically build a model within an RSpec context
gem "zonebie", "~> 0.6.1" # Runs your tests in a random timezone
end
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ DEPENDENCIES
web-console (~> 4.2)
webmock (~> 3.17)
webpacker (~> 5.4.3)
with_model (~> 2.1.6)
with_model (~> 2.1.7)
yard (~> 0.9)
yard-activerecord (~> 0.0)
yard-activesupport-concern (~> 0.0)
Expand Down
4 changes: 1 addition & 3 deletions spec/models/hair_trigger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
# See https://github.com/jenseng/hair_trigger#testing
RSpec.describe HairTrigger do
describe ".migrations_current?" do
# Temporarily disabling this as it is causing problems with the test suite at the moment.
# TODO — re-enable this test once we have a better understanding of the problem.
xit "is always true" do
it "is always true" do
# work-around empty AR::Base descendants array caused by with_model cleanup
# HairTrigger uses AR::Base to get database triggers (and compare against the schema)
if ActiveRecord::Base.descendants.blank?
Expand Down

0 comments on commit 341f64c

Please sign in to comment.