Skip to content

Commit

Permalink
Framework / tests: retry flaky tests
Browse files Browse the repository at this point in the history
…until a way to fix them is found.
  • Loading branch information
Alexander-Senko committed Dec 7, 2024
1 parent b38ff9f commit b004b8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ gem 'combustion'
group :test do
gem 'rspec'
gem 'rspec-its'
gem 'rspec-retry'
gem 'rspec-rails'
gem 'rspec-html-matchers'
gem 'magic-support'
Expand Down
2 changes: 2 additions & 0 deletions spec/magic/presentable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def presenter_class = Class.new Presenter::Base
after { Presenter::Base.clear_memery_cache! }

shared_context :model do
metadata[:retry] = 9 # FIXME

before { object.singleton_class.include ActiveModel::Model }
end

Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

require 'rspec/its'
require 'rspec/method'
require 'rspec/retry'
require 'rspec-html-matchers'
require 'simplecov'

Expand Down

0 comments on commit b004b8f

Please sign in to comment.