Sha256: be34f70e0caf305b934cefa629614db19f4a6909afc7e4d938b83f9928be1619
Contents?: true
Size: 1.28 KB
Versions: 11
Compression:
Stored size: 1.28 KB
Contents
require './test/test_helper' class FilterTest < Minitest::Test def get_first_filter VCR.use_cassette('filter search') do @first_filter = Access::Filter.search(per_page: 1).filters.first end end def test_filters_search VCR.use_cassette('filter search') do filters_response = Access::Filter.search(per_page: 1) assert filters_response.success first_filter = filters_response.filters.first assert_kind_of Access::FilterResponse, filters_response assert_kind_of Access::Link, filters_response.links assert_kind_of Access::Info, filters_response.info assert_kind_of Array, filters_response.filters assert_kind_of Access::Filter, first_filter assert first_filter.json_filter assert first_filter.hash_filter end end def test_filters_find get_first_filter VCR.use_cassette('filter find') do filters_response = Access::Filter.find(@first_filter.filter_id) assert filters_response.success first_filter = filters_response.filters.first assert_kind_of Access::FilterResponse, filters_response assert_kind_of Array, filters_response.filters assert_kind_of Access::Filter, first_filter assert first_filter.json_filter assert first_filter.hash_filter end end end
Version data entries
11 entries across 11 versions & 1 rubygems