Sha256: 864c8555d9883d08c15e2a586c33f8d8ffd2bfe05339ad468e987c6f9d51efec

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require 'forwardable'
require 'capybara'
require 'fake_braintree/sinatra_app'

class FakeBraintree::Server
  SERVER_HOST = '127.0.0.1'

  extend Forwardable
  def_delegators :@server, :port, :boot

  def initialize(options = {})
    app = FakeBraintree::SinatraApp
    @server = Capybara::Server.new(app, options.fetch(:port, nil), SERVER_HOST)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fake_braintree-0.8.0 lib/fake_braintree/server.rb
fake_braintree-0.7.0 lib/fake_braintree/server.rb