Sha256: b4a724efd13ef9247483ed6047d95d826cf93187138cd02a92f5965360030615

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

require 'spec_helper'

describe EmberCliDeployRedis::Application do
  let(:application) { described_class.new(app_name) }
  let(:app_name) { 'app_name' }

  describe '.revisions' do
    subject { application.revisions }
    it 'returns RevisionList.from_redis' do
      expect(EmberCliDeployRedis::RevisionList).to receive(:from_redis)
        .with(application)
        .and_return(:whatever)
      expect(subject).to eq(:whatever)
    end
  end

  describe '.latest_revision' do
    subject { application.latest_revision }
    it 'returns Revision.active_from_redis' do
      expect(EmberCliDeployRedis::Revision).to receive(:active_from_redis)
        .with(application)
        .and_return(:whatever)
      expect(subject).to eq(:whatever)
    end
  end

  describe '.active_revision' do
    subject { application.active_revision }
    it 'returns Revision.active_from_redis' do
      expect(EmberCliDeployRedis::Revision).to receive(:active_from_redis)
        .with(application)
        .and_return(:whatever)
      expect(subject).to eq(:whatever)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ember_cli_deploy_redis-1.0.2 spec/lib/ember_cli_deploy_redis/application_spec.rb
ember_cli_deploy_redis-1.0.1 spec/lib/ember_cli_deploy_redis/application_spec.rb
ember_cli_deploy_redis-1.0.0 spec/lib/ember_cli_deploy_redis/application_spec.rb