Sha256: d241165ccf5a30725ae8179e3699e29245bb50f2cff1a192c4d5771236dff4a4
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
require 'spec_helper' describe 'Revisions', :vcr do before do LayerVault.reset! @client = LayerVault::Client.new @md5 = random_md5 @client.create_file(test_org, test_project, '', 'dhh_face.png', md5: @md5, local_file_path: fixture_path_for('dhh.png'), content_type: 'image/png') end context '.revision' do it 'returns the Revision info' do @client.revision(test_org, test_project, '', 'dhh_face.png', 1) assert_requested :get, layervault_url("#{test_org}/#{test_project}/dhh_face.png/1") end end context '.previews' do it 'returns the Preview info' do @client.previews(test_org, test_project, '', 'dhh_face.png', 1, w:100, h:100) assert_requested :get, layervault_url("#{test_org}/#{test_project}/dhh_face.png/1/previews?h=100&w=100") end end context '.revisions' do it 'returns the Revisions info' do @client.revisions(test_org, test_project, '', 'dhh_face.png', 1, first_seen:1) assert_requested :get, layervault_url("#{test_org}/#{test_project}/dhh_face.png/1/revisions?first_seen=1") end end context '.meta' do it 'returns the Meta info' do @client.meta(test_org, test_project, '', 'dhh_face.png', 1) assert_requested :get, layervault_url("#{test_org}/#{test_project}/dhh_face.png/1/meta") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
layervault-0.1.1 | spec/layervault/client/revisions_spec.rb |
layervault-0.1.0 | spec/layervault/client/revisions_spec.rb |