Sha256: caf1cd4b6e7f40b774dc66fe135474fe3ea3cc77f47553045c4433050b87d175

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 Bytes

Contents

require "spec_helper"

describe Hive::Paths::Artifacts do

  describe "class methods" do

    let(:base_path) { "http://hive.bbc" }

    before(:each) do
      Hive::Paths.base=base_path
    end

    describe ".create_url" do

      let(:job_id) { 99 }

      it "generates a valid create artifact url" do
        expect(Hive::Paths::Artifacts.create_url(job_id)).to eq "#{base_path}/api/jobs/#{job_id.to_s}/artifacts"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hive-messages-1.0.7 spec/lib/hive/paths/artifacts_spec.rb
hive-messages-1.0.6 spec/lib/hive/paths/artifacts_spec.rb
hive-messages-1.0.5 spec/lib/hive/paths/artifacts_spec.rb
hive-messages-1.0.4 spec/lib/hive/paths/artifacts_spec.rb
hive-messages-1.0.3 spec/lib/hive/paths/artifacts_spec.rb
hive-messages-1.0.2 spec/lib/hive/paths/artifacts_spec.rb
hive-messages-1.0.1 spec/lib/hive/paths/artifacts_spec.rb