Sha256: 72415630c08b1ea70513cd178e13366b20da83e8a53e8e86c9030009c6984f91

Contents?: true

Size: 424 Bytes

Versions: 80

Compression:

Stored size: 424 Bytes

Contents

# If a test fails and RSPEC_RETRY is set to true, create a new
# application before retrying the RSpec test again
#
RSpec.configure do |config|
  config.around(:example) do |example|
    example.run

    next if example.metadata[:webmock] # new app is not needed for a mocked test

    if example.exception && ENV['RSPEC_RETRY']
      reload_test_app
      puts "** Test app reloaded before next retry **"
    end
  end
end

Version data entries

80 entries across 80 versions & 2 rubygems

Version Path
ably-0.8.8 spec/support/rest_testapp_before_retry.rb
ably-0.8.7 spec/support/rest_testapp_before_retry.rb
ably-0.8.6 spec/support/rest_testapp_before_retry.rb
ably-rest-0.8.6 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-rest-0.8.5 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-0.8.5 spec/support/rest_testapp_before_retry.rb
ably-0.8.4 spec/support/rest_testapp_before_retry.rb
ably-rest-0.8.3 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-0.8.3 spec/support/rest_testapp_before_retry.rb
ably-rest-0.8.2 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-0.8.2 spec/support/rest_testapp_before_retry.rb
ably-0.8.1 spec/support/rest_testapp_before_retry.rb
ably-rest-0.8.1 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-0.8.0 spec/support/rest_testapp_before_retry.rb
ably-0.7.6 spec/support/rest_testapp_before_retry.rb
ably-rest-0.7.5 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-0.7.5 spec/support/rest_testapp_before_retry.rb
ably-0.7.4 spec/support/rest_testapp_before_retry.rb
ably-rest-0.7.3 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-0.7.2 spec/support/rest_testapp_before_retry.rb