Sha256: 672ce080e497aeeeef7445eda0bf5e4835def753b9498d41d2e46870f36e27d4

Contents?: true

Size: 817 Bytes

Versions: 9

Compression:

Stored size: 817 Bytes

Contents

# encoding: utf-8

require File.expand_path("../spec_helper", File.dirname(__FILE__))

describe Youroom::VerifyCredentials do
  describe "#path" do
    context "本家のURLを利用する場合" do
      before do
        @client = Youroom::VerifyCredentials.new(access_token)
      end

      subject { @client.path }

      it "正しいURLが設定されていること" do
        should == File.join(@client.url, 'verify_credentials', '?format=json')
      end
    end

    context "本家を利用しない場合" do
      before do
        @client = Youroom::VerifyCredentials.new(access_token, WW_URL)
      end

      subject { @client.path }
      it "正しいURLが設定されていること" do
        should == File.join(@client.url, 'verify_credentials', '?format=json')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
youroom_api-0.1.4 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.1.3 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.1.2 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.1.1 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.1.0 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.0.13 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.0.12 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.0.11 spec/youroom_api/verify_credentials_spec.rb
youroom_api-0.0.10 spec/youroom_api/verify_credentials_spec.rb