Sha256: 7d2c93091bda1f4869dfca8ae32a5a93d38fa6d37e899efd72e9c509539f57bf

Contents?: true

Size: 730 Bytes

Versions: 44

Compression:

Stored size: 730 Bytes

Contents

require 'spec_helper'

describe EY::Serverside::Source::Archive do
  before do
    allow_any_instance_of(described_class).to receive(: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

44 entries across 44 versions & 1 rubygems

Version Path
engineyard-serverside-2.8.0.pre4 spec/source/archive_spec.rb
engineyard-serverside-2.8.0.pre spec/source/archive_spec.rb
engineyard-serverside-2.6.17 spec/source/archive_spec.rb
engineyard-serverside-2.6.15.pre spec/source/archive_spec.rb
engineyard-serverside-2.6.14 spec/source/archive_spec.rb
engineyard-serverside-2.6.13 spec/source/archive_spec.rb
engineyard-serverside-2.6.12 spec/source/archive_spec.rb
engineyard-serverside-2.6.12.prewut5 spec/source/archive_spec.rb
engineyard-serverside-2.6.12.prewut4 spec/source/archive_spec.rb
engineyard-serverside-2.6.12.prewut3 spec/source/archive_spec.rb
engineyard-serverside-2.6.12.prewut2 spec/source/archive_spec.rb
engineyard-serverside-2.6.12.prewut1 spec/source/archive_spec.rb
engineyard-serverside-2.6.12.prewut0 spec/source/archive_spec.rb
engineyard-serverside-2.6.11 spec/source/archive_spec.rb
engineyard-serverside-2.6.10 spec/source/archive_spec.rb
engineyard-serverside-2.6.9pre3 spec/source/archive_spec.rb
engineyard-serverside-2.6.9pre2 spec/source/archive_spec.rb
engineyard-serverside-2.6.9pre1 spec/source/archive_spec.rb
engineyard-serverside-2.6.8 spec/source/archive_spec.rb
engineyard-serverside-2.6.8pre2 spec/source/archive_spec.rb