Sha256: 5d90c1f8ce817c8d23b3dadc8d01575a0246d29c78f9b780b930f33eb684a072
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true RSpec.describe RatingChgkV2::Rest::Releases do describe '#releases' do it 'returns a collection of releases' do releases = VCR.use_cassette('releases/all_releases') do test_client.releases end expect(releases.first.date).to eq('2003-07-01T00:00:00+04:00') end it 'returns a collection of releases with params' do releases = VCR.use_cassette('releases/all_releases_params') do test_client.releases itemsPerPage: 3, page: 2 end expect(releases.items.size).to eq(3) expect(releases.first.realDate).to eq('2005-04-01T00:00:00+04:00') end end specify '#release' do id = 4 release = VCR.use_cassette('releases/release') do test_client.release id end expect(release.lastRunRefresh).to eq('2015-02-09T15:51:22+03:00') expect(release.realDate).to eq('2005-04-01T00:00:00+04:00') expect(release.date).to eq('2005-04-01T00:00:00+04:00') expect(release.id).to eq(id) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rating-chgk-v2-1.0.0 | spec/lib/rating_chgk_v2/rest/releases_spec.rb |
rating-chgk-v2-1.0.0.rc1 | spec/lib/rating_chgk_v2/rest/releases_spec.rb |