Sha256: 05d2b065aef3f3b205ceb0fd0b6859a0562eb8229dd5083580575a1b073d2bd8

Contents?: true

Size: 344 Bytes

Versions: 61

Compression:

Stored size: 344 Bytes

Contents

class FCGI
  class << self
    attr_accessor :time_to_sleep
    attr_accessor :raise_exception
    attr_accessor :each_cgi_count

    def each_cgi
      (each_cgi_count || 1).times do
        sleep(time_to_sleep || 0)
        raise raise_exception, "Something died" if raise_exception
        yield "mock cgi value"
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
backlog-0.0.0 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.0.1 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.0.2 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.0.5 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.0.4 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.1.0 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.1.1 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.1.2 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.2.0 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.2.1 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.0 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.3 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.2 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.1 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.4 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.5 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.6 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.7 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.8 vendor/rails/railties/test/mocks/fcgi.rb
backlog-0.3.9 vendor/rails/railties/test/mocks/fcgi.rb