Sha256: 939580bc4372f7f2add9ccd12214e72c6d9e62d1a4c2b8e60328f0a5ef7f3483

Contents?: true

Size: 628 Bytes

Versions: 4

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

describe Jack::Config do
  before(:all) do
    Jack::UI.mute = true
  end

  let(:transmit) { Jack::Config::Transmit.new(test_options) }

  describe "transmit" do
    it "config_name_convention" do
      name = transmit.config_name_convention("stag-rails-app-s9")
      expect(name).to eq "stag-rails-app"
    end

    it "timestamp" do
      timestamp = transmit.timestamp
      expect(timestamp).to be_a(String)
    end

    it "extract_name" do
      name = transmit.extract_name("/app/.elasticbeanstalk/saved_cofnigs/stag-rails-app.cfg.yml")
      expect(name).to eq "stag-rails-app"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jack-eb-0.0.8 spec/lib/config/transmit_spec.rb
jack-eb-0.0.7 spec/lib/config/transmit_spec.rb
jack-eb-0.0.6 spec/lib/config/transmit_spec.rb
jack-eb-0.0.4 spec/lib/config/transmit_spec.rb