Sha256: 9aa82aeb5bf83ce95629178c8b20b23a3bbd8292da2da58431197b4e1ec81568

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

require "spec_helper"
require "omniauth-teamsnap"

describe OmniAuth::Strategies::TeamSnap do
  subject do
    OmniAuth::Strategies::TeamSnap.new(nil, @options || {}).tap do |strategy|
    end
  end

  describe "#client" do
    it "should have the correct TeamSnap site" do
      expect(subject.client.site).to eq("https://auth.teamsnap.com")
    end

    it "should have the correct authorization url" do
      expect(subject.client.options[:authorize_url]).to eq("/oauth/authorize")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omniauth-teamsnap-1.3.0 spec/omniauth/strategies/teamsnap_spec.rb
omniauth-teamsnap-1.2.0 spec/omniauth/strategies/teamsnap_spec.rb
omniauth-teamsnap-1.1.0 spec/omniauth/strategies/teamsnap_spec.rb
omniauth-teamsnap-1.0.0 spec/omniauth/strategies/teamsnap_spec.rb