spec/notion/api/endpoints/users_spec.rb in notion-ruby-client-0.1.0.pre.beta1 vs spec/notion/api/endpoints/users_spec.rb in notion-ruby-client-1.0.0.pre.beta1
- old
+ new
@@ -3,9 +3,14 @@
RSpec.describe Notion::Api::Endpoints::Users do
let(:client) { Notion::Client.new }
context 'users' do
+ it 'me', vcr: { cassette_name: 'users_me' } do
+ response = client.me
+ expect(response.name).to eql 'Notion to Orbit'
+ end
+
it 'lists', vcr: { cassette_name: 'users_list' } do
response = client.users_list
expect(response.results.size).to be 1
end
\ No newline at end of file