Sha256: deda8acd01cf28c920f598b94d756697b456cfe2381c0cf4fd202e497b457c21

Contents?: true

Size: 718 Bytes

Versions: 6

Compression:

Stored size: 718 Bytes

Contents

require 'spec_helper'
require 'chatwork'

describe ChatWork do
  describe '#client' do
    subject { super().client }
    it { should be_a(ChatWork::Client) }
  end

  describe '#api_base' do
    subject { super().api_base }
    it { should eq('https://api.chatwork.com/') }
  end
  describe '#api_base=' do
    before { ChatWork.api_base = 'https://test.example.com/' }

    describe '#api_base' do
      subject { super().api_base }
      it { should eq('https://test.example.com/') }
    end

    describe '#api_base' do
      subject { super().api_base }
      it { should eq('https://test.example.com/') }
    end
  end

  describe '#api_key' do
    subject { super().api_key }
    it { should be_nil }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chatwork-0.2.0 spec/lib/chatwork_spec.rb
chatwork-0.1.2 spec/lib/chatwork_spec.rb
chatwork-0.1.1 spec/lib/chatwork_spec.rb
chatwork-0.1.0 spec/lib/chatwork_spec.rb
chatwork-0.0.7 spec/lib/chatwork_spec.rb
chatwork-0.0.6 spec/lib/chatwork_spec.rb