Sha256: a1d5e596b3f2f26b083a3f961f568deca2da3bac89ce45462c379d4def3f370d
Contents?: true
Size: 715 Bytes
Versions: 2
Compression:
Stored size: 715 Bytes
Contents
require 'spec_helper' describe MB::RestGateway do include Rack::Test::Methods after { subject.terminate } describe "#app" do it "returns MB::API::Application" do subject.app.should be_a(MB::API::Application) end end describe "constants" do it "should set DEFAULT_PORT to $PORT" do p = 12345 ENV["PORT"] = p.to_s load File.join(MB.app_root, "lib", "mb", "rest_gateway.rb") expect(MB::RestGateway::DEFAULT_PORT).to eq(p) end it "should set DEFAULT_PORT to 26100 if $PORT is not set" do ENV.delete("PORT") load File.join(MB.app_root, "lib", "mb", "rest_gateway.rb") expect(MB::RestGateway::DEFAULT_PORT).to eq(26100) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motherbrain-1.5.0 | spec/unit/mb/rest_gateway_spec.rb |
motherbrain-1.4.0 | spec/unit/mb/rest_gateway_spec.rb |