Sha256: 49e1d3c7a64e59f5af37396ef591bce36676d494cbe04ae3668656ad2d8e03be

Contents?: true

Size: 607 Bytes

Versions: 6

Compression:

Stored size: 607 Bytes

Contents

require 'rubygems'
require 'require_relative' if RUBY_VERSION < '1.9'

require_relative 'common.rb'

describe Deltacloud::Collections::Base do

  before do
    @base = Deltacloud::Collections::Base
  end

  it 'has config set correctly' do
    @base.config.must_be_kind_of Deltacloud::Server
    @base.config.root_url.must_equal Deltacloud.config[:deltacloud].root_url
  end

  it 'has root_url set correctly' do
    @base.root_url.must_equal  Deltacloud.config[:deltacloud].root_url
  end

  it 'has version set correctly' do
    @base.version.must_equal  Deltacloud.config[:deltacloud].version
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
deltacloud-core-1.1.3 tests/deltacloud/base_collection_test.rb
deltacloud-core-1.1.2 tests/deltacloud/base_collection_test.rb
deltacloud-core-1.1.1 tests/deltacloud/base_collection_test.rb
deltacloud-core-1.1.0 tests/deltacloud/base_collection_test.rb
deltacloud-core-1.0.5 tests/deltacloud/base_collection_test.rb
deltacloud-core-1.0.4 tests/deltacloud/base_collection_test.rb