test/access/member_test.rb in access-2.0.33 vs test/access/member_test.rb in access-2.0.34
- old
+ new
@@ -46,21 +46,21 @@
end
end
def test_authenticate_cvt_success
VCR.use_cassette('member authenticate cvt success') do
- request = Access::Member.authenticate cvt: '6fa6c66c4edc07b767f147a6e5fc614c20797ef0', api_environment: 'stage'
+ request = Access::Member.authenticate_by_cvt cvt: '6fa6c66c4edc07b767f147a6e5fc614c20797ef0', api_environment: 'stage'
assert request.success
assert_kind_of Access::MemberResponse, request
assert_kind_of Array, request.users
assert_equal 1, request.users.count
assert_kind_of Access::Member, request.users.first
end
end
def test_authenticate_cvt_failure
VCR.use_cassette('member authenticate cvt failure') do
- request = Access::Member.authenticate cvt: 'thisisaverybadcvtman1234556badbadbad', api_environment: 'stage'
+ request = Access::Member.authenticate_by_cvt cvt: 'thisisaverybadcvtman1234556badbadbad', api_environment: 'stage'
refute request.success
assert_equal 401, request.status
assert_kind_of Access::MemberResponse, request
refute_nil request.error
assert_kind_of Access::Error, request.error