Sha256: d17bdfdcb18b99dad1c1260608335aef453aa7a49580cd9498398b6a69bb8047
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
require 'spec_helper' require 'moreapp_api' describe MoreappAPI do context "api_base" do context "the default version (without setting it)" do before do MoreappAPI.api_base = nil end it "returns the default value" do expect(MoreappAPI.api_base).to eq("https://api.moreapp.com") end end context "overriding api-base" do before do MoreappAPI.api_base = "https://developer.api.moreapp.com" end it "returns the default value" do expect(MoreappAPI.api_base).to eq("https://developer.api.moreapp.com") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moreapp-api-0.0.4 | spec/moreapp_api_spec.rb |
moreapp-api-0.0.3 | spec/moreapp_api_spec.rb |
moreapp-api-0.0.2 | spec/moreapp_api_spec.rb |
moreapp-api-0.0.1 | spec/moreapp_api_spec.rb |