Sha256: 595a24ce305aa1504da32f06670483f309b86fc4b1e5359732b78fdf1496d45f
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rexpense::Configuration do subject { Rexpense::Configuration.new } it "uses the production mode by default" do expect(subject.api_mode).to eq("production") end it "uses a default user agent" do expect(subject.user_agent).to eq("Rexpense Ruby Client v#{Rexpense::VERSION}") end it 'allows setting the configuration parameters' do subject.api_mode = "sandbox" subject.user_agent = "My specific user agent" expect(subject.api_mode).to eq("sandbox") expect(subject.user_agent).to eq("My specific user agent") end it 'does not respond to #token' do expect(subject).to_not respond_to(:token) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rexpense-1.0.0 | spec/lib/rexpense/configuration_spec.rb |