Sha256: a1968d7c2350969ddc28122800d3c12eaa426f5a34f2aadadc14b85711a81e2b
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' RSpec.describe Base::Apis::User do let(:client_secret) { Base::APIClient::ClientSecret.new } subject { Base::Apis::User.new client_secret } describe '#my_info' do let(:response) do VCR.use_cassette('user/me') { subject.me } end it 'status is 200' do expect(response.status).to eq 200 end it '@body contains information of the user' do expect(response.body).to match(/user/) expect(response.body).to match(/shop_id/) expect(response.body).to match(/shop_name/) expect(response.body).to match(/shop_introduction/) expect(response.body).to match(/shop_url/) expect(response.body).to match(/twitter_id/) expect(response.body).to match(/facebook_id/) expect(response.body).to match(/ameba_id/) expect(response.body).to match(/instagram_id/) expect(response.body).to match(/background/) expect(response.body).to match(/display_background/) expect(response.body).to match(/repeat_background/) expect(response.body).to match(/logo/) expect(response.body).to match(/display_logo/) expect(response.body).to match(/mail_address/) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
base-api-client-0.3.3.beta | spec/base/apis/user_spec.rb |
base-api-client-0.3.2.beta | spec/base/apis/user_spec.rb |