Sha256: 18785eb767e649d0ba3e96ad0a1de10e1490aef2023a7bf844dde1ec2ce84898
Contents?: true
Size: 557 Bytes
Versions: 2
Compression:
Stored size: 557 Bytes
Contents
require 'spec_helper' require 'goliath/api' describe Goliath::API do DummyApi = Class.new(Goliath::API) describe 'middlewares' do it "doesn't change after multi calls" do 2.times { Goliath::API.should have(2).middlewares } end end describe ".maps?" do context "when not using maps" do it "returns false" do DummyApi.maps?.should be_false end end context "when using maps" do it "returns true" do DummyApi.map "/foo" DummyApi.maps?.should be_true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
goliath-0.9.4 | spec/unit/api_spec.rb |
goliath-0.9.2 | spec/unit/api_spec.rb |