Sha256: 0382c2b6840f3595ec4b627774ee16fc55a54f978a4cd22cc305994b287b251f
Contents?: true
Size: 464 Bytes
Versions: 10
Compression:
Stored size: 464 Bytes
Contents
describe ChatWork::Me do describe ".get", type: :api do subject { ChatWork::Me.get(&block) } before do stub_chatwork_request(:get, "/me") end it_behaves_like :a_chatwork_api, :get, "/me" context "when unauthorized" do before do stub_chatwork_request(:get, "/me", "/me", 401) end let(:block) { nil } it { expect { subject }.to raise_error(ChatWork::APIError, "Invalid API token") } end end end
Version data entries
10 entries across 10 versions & 1 rubygems