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-rest-1.1.5 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.5 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.4 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.4 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.4.rc lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.4.rc spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.3 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.3 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.2 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.2 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.2.rc1 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.1 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.0 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.0 spec/support/rest_testapp_before_retry.rb
ably-1.0.7 spec/support/rest_testapp_before_retry.rb
ably-rest-1.0.6 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.0.6 spec/support/rest_testapp_before_retry.rb
ably-rest-1.0.5 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.0.5 spec/support/rest_testapp_before_retry.rb
ably-1.0.4 spec/support/rest_testapp_before_retry.rb