Sha256: fca470343f7b502ba16b2ff0b26b94761008cd81ae4fa6f3f83970e95996b164

Contents?: true

Size: 550 Bytes

Versions: 10

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'

describe WCC::Auth::Config do
  let(:klass) { WCC::Auth::Config }

  describe "default attributes" do
    subject { klass.new }
    it "sets authorize_site according to environment" do
      subject.environment = :development
      expect(subject.authorize_site).to eq("http://login.wcc")
      subject.environment = :production
      expect(subject.authorize_site).to eq("https://login.watermark.org")
    end

    it "sets authorize_path" do
      expect(subject.authorize_path).to eq("/oauth/authorize")
    end
  end


end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wcc-auth-0.9.0 spec/wcc/auth/config_spec.rb
wcc-auth-0.8.3 spec/wcc/auth/config_spec.rb
wcc-auth-0.8.2 spec/wcc/auth/config_spec.rb
wcc-auth-0.8.1 spec/wcc/auth/config_spec.rb
wcc-auth-0.8.0 spec/wcc/auth/config_spec.rb
wcc-auth-0.7.3 spec/wcc/auth/config_spec.rb
wcc-auth-0.7.2 spec/wcc/auth/config_spec.rb
wcc-auth-0.7.1 spec/wcc/auth/config_spec.rb
wcc-auth-0.7.0 spec/wcc/auth/config_spec.rb
wcc-auth-0.6.0 spec/wcc/auth/config_spec.rb