Sha256: 604ce74c88285e0ea2b10827166b49159f113d27902d0eccfe039b51869af19a
Contents?: true
Size: 972 Bytes
Versions: 2
Compression:
Stored size: 972 Bytes
Contents
require 'rubygems' require 'require_relative' if RUBY_VERSION < '1.9' require_relative File.join('..', 'common.rb') describe Deltacloud::Collections::Drivers do before do def app; Deltacloud::API; end @collection = Deltacloud::Collections.collection(:drivers) end it 'has index operation' do @collection.operation(:index).must_equal Sinatra::Rabbit::DriversCollection::IndexOperation end it 'has show operation' do @collection.operation(:show).must_equal Sinatra::Rabbit::DriversCollection::ShowOperation end it 'returns list of drivers in various formats with index operation' do formats.each do |format| header 'Accept', format get root_url + '/drivers' status.must_equal 200 end end it 'returns details about driver in various formats with show operation' do formats.each do |format| header 'Accept', format get root_url + '/drivers/mock' status.must_equal 200 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deltacloud-core-1.0.3 | tests/deltacloud/collections/drivers_collection_test.rb |
deltacloud-core-1.0.2 | tests/deltacloud/collections/drivers_collection_test.rb |