Sha256: 43ee8cf62385713cf632c8f2ba86335b6e43064705b6c034572b3dd4bd3fa02b

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

require 'spec_helper'

describe Lobstr::Base do

  before do
    @deploy = Lobstr::Base.new
  end

  describe "parse_target" do
    it "can parse deployment target (full): branch@env" do
      @deploy.parse_target('branch@env').must_equal ['branch','env']
    end

    it "can parse deployment target (branch only): branch@" do
      @deploy.parse_target('branch@').must_equal ['branch','production']
    end

    it "can parse deployment target (env only): @environment" do
      @deploy.parse_target('@environment').must_equal ['master','environment']
    end
    
    it "can parse deployment target (env only) - alt syntax: environment" do
      @deploy.parse_target('@environment').must_equal ['master','environment']
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lobstr-0.0.2 spec/lobstr_base_spec.rb
lobstr-0.0.1 spec/lobstr_base_spec.rb