Sha256: 344bd217347a46d4533239b12c70b9b88fa2e1a2ce64268b89a00975d3f935a1

Contents?: true

Size: 714 Bytes

Versions: 9

Compression:

Stored size: 714 Bytes

Contents

require 'spec_helper'

describe EY::Serverside::Source::Archive do
  before do
    described_class.any_instance.stub(:runner) { RunnerDouble }
  end

  context "source" do
    let(:shell) { ShellDouble.new }
    subject {
      described_class.new(shell,
        :uri => "http://server.com/app.war",
        :repository_cache => TMPDIR)
    }

    it "cleans cache" do
      expect(subject).to respond_to(:gc_repository_cache)
    end

    it "compares revisions" do
      expect(subject.same?("1", "1")).to be
    end

    it "understands short log message" do
      expect(subject).to respond_to(:short_log_message)
    end

    it "updates the cache" do
      subject.update_repository_cache
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
engineyard-serverside-2.3.9 spec/source/archive_spec.rb
engineyard-serverside-2.3.7 spec/source/archive_spec.rb
engineyard-serverside-2.3.6 spec/source/archive_spec.rb
engineyard-serverside-2.3.5 spec/source/archive_spec.rb
engineyard-serverside-2.3.4 spec/source/archive_spec.rb
engineyard-serverside-2.3.3 spec/source/archive_spec.rb
engineyard-serverside-2.3.2 spec/source/archive_spec.rb
engineyard-serverside-2.3.1 spec/source/archive_spec.rb
engineyard-serverside-2.3.1.pre.archivefix spec/source/archive_spec.rb