Sha256: 14465c4f5c56a9227befd5ec711e576ce287ab5998fae01c7f810b666e0293a7

Contents?: true

Size: 537 Bytes

Versions: 6

Compression:

Stored size: 537 Bytes

Contents

# The VCR test suite spawns a localhost webserver in a separate process, but it appears that
# heroku does not support this.  I'm using heroku for my CI server, so we disable these specs
# as pending specs when we're running on heroku.
module PendingOnHeroku
  if ENV.keys.include?('HEROKU_SLUG')
    def it(*args, &block)
      super description, *args do
        pending('pending on heroku because heroku does not allow the spawning of a localhost webserver') do
          instance_eval(&block)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vcr-1.3.2 spec/support/pending_on_heroku.rb
vcr-1.3.1 spec/support/pending_on_heroku.rb
vcr-1.3.0 spec/support/pending_on_heroku.rb
vcr-1.2.0 spec/support/pending_on_heroku.rb
vcr-1.1.2 spec/support/pending_on_heroku.rb
vcr-1.1.1 spec/support/pending_on_heroku.rb