You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require"codeclimate-test-reporter"require'rspec/retry'CodeClimate::TestReporter.startFakeBraintree.activate!RSpec.configuredo |config|
config.full_backtrace=falseconfig.beforedoFakeBraintree.clear!endconfig.includeShowMeTheCookies,:type=>:featureconfig.expect_with:rspecdo |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions=trueendconfig.expect_with:rspecdo |c|
c.syntax=:expectend# rspec-mocks config goes here. You can use an alternate test double# library (such as bogus or mocha) by changing the `mock_with` option here.config.mock_with:rspecdo |mocks|
mocks.verify_partial_doubles=truemocks.verify_doubled_constant_names=true# Prevents you from mocking or stubbing a method that does not exist on# a real object. This is generally recommended, and will default to# `true` in RSpec 4.config.around(:each,type: :helper)do |ex|
config.mock_with:rspecdo |mocks|
mocks.verify_partial_doubles=falseex.runmocks.verify_partial_doubles=trueendendend# show retry status in spec processconfig.verbose_retry=true# show exception that triggers a retry if verbose_retry is set to trueconfig.display_try_failure_messages=true# run retry only on featuresconfig.around:each,:jsdo |ex|
ex.run_with_retryretry: 3end# callback to be run between retriesconfig.retry_callback=procdo |ex|
# restart phantomjs between retriesifex.metadata[:js]restart_phantomjsendend# Run specs in random order to surface order dependencies. If you find an# order dependency and want to debug it, you can fix the order by providing# the seed, which is printed after each run.# --seed 1234config.order=:randomconfig.raise_errors_for_deprecations!enddefrestart_phantomjsputs"-> Restarting phantomjs: iterating through capybara sessions..."session_pool=Capybara.send('session_pool')session_pool.eachdo |mode,session|
msg=" => #{mode} -- "driver=session.driverifdriver.is_a?(Capybara::Poltergeist::Driver)msg += "restarting"driver.restartelsemsg += "not poltergeist: #{driver.class}"endputsmsgendend
But it produces an error because retry_callback does not exist:
Here's my spec helper:
But it produces an error because
retry_callback
does not exist:Looked at the gem code and can't figure out why. Any advice?
The text was updated successfully, but these errors were encountered: