Sha256: 80de9369f5df1631e7fb12f7ee3f9225141e61dc84efc3924b80c5a5f726d3d8

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

require_relative "./helper"

describe "sites" do
  it "response should be an array" do
    VCR.use_cassette("sites/all_sites") do
      response = AcquiaToolbelt::CLI::API.request "sites", "GET", {}, false
      expect(response.status).to eq 200
      JSON.parse(response.body).should be_an_instance_of Array
    end
  end

  it "should contain a valid sunscription name" do
    VCR.use_cassette("sites/all_sites") do
      response = AcquiaToolbelt::CLI::API.request "sites", "GET", {}, false
      expect(response.status).to eq 200
      response.body.should include "prod:eeamalone"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acquia_toolbelt-2.4.1 spec/sites_spec.rb
acquia_toolbelt-2.4.0 spec/sites_spec.rb
acquia_toolbelt-2.3.2 spec/sites_spec.rb
acquia_toolbelt-2.3.1 spec/sites_spec.rb