Sha256: dd7c771aacc7211ad4d5ed0acba7409fc49e73bd141a3508eac40ff1f43c9387

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

require_relative "spec_helper"

describe "hello world" do
  it "answers" do
    out = double
    allow(out).to receive(:puts)

    test = Httpotemkin::Test.new(out: out)
    test.add_server("server")

    test.run do |client|
      sleep 2
      client.execute(["curl", "server/hello"])

      expect(client.exit_code).to eq(0)
      expect(client.out).to eq("world\n")
      expect(client.err.empty?).to be(true)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
httpotemkin-0.0.1 spec/system/hello_world_spec.rb