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.2.7 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.7 spec/support/rest_testapp_before_retry.rb
ably-rest-1.2.6 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.6 spec/support/rest_testapp_before_retry.rb
ably-rest-1.2.4 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.4 spec/support/rest_testapp_before_retry.rb
ably-rest-1.2.3 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.3 spec/support/rest_testapp_before_retry.rb
ably-rest-1.2.2 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.2 spec/support/rest_testapp_before_retry.rb
ably-rest-1.2.1 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.1 spec/support/rest_testapp_before_retry.rb
ably-rest-1.2.0 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.2.0 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.8 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.8 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.7 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.7 spec/support/rest_testapp_before_retry.rb
ably-rest-1.1.6 lib/submodules/ably-ruby/spec/support/rest_testapp_before_retry.rb
ably-1.1.6 spec/support/rest_testapp_before_retry.rb