test/test_mxhero_api.rb in mxhero-api-0.1.35 vs test/test_mxhero_api.rb in mxhero-api-0.1.36

- old
+ new

@@ -339,9 +339,18 @@ domains = @api.user_domains('not_existent_account') assert domains.nil? end end + def test_users_for_domain + VCR.use_cassette('users_for_domain') do + users = @api.users_for_domain('mxhero.com') + assert !users.nil? + assert !users.empty? + assert users.find { |user| user[:userName] == 'mxhero@mxhero.com' } + end + end + def test_fetch_user VCR.use_cassette('fetch_user') do user = @api.fetch_user('mxhero@mxhero.com') refute user.nil?