Sha256: f5666e2425f53cd5a777f89580ea4d0963d2dd2e50bd8c6090ee8a8f3007f27e

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

require "spec_helper"

describe RodeoClown::DeployStrategy do
  describe "#tool" do

    context "mina is the strategy " do
      let(:strategy) { "mina" }
      it "returns the mina class" do
        res = RodeoClown::DeployStrategy.by_name(strategy)

        expect(res).to eq(RodeoClown::DeployStrategy::Mina)
      end
    end

    context "unknown strategy " do
      let(:strategy) { "not_mina" }
      it "raises name error" do
        expect {
          RodeoClown::DeployStrategy.by_name(strategy)
        }.to raise_error(NameError)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rodeo_clown-0.1.0 spec/rodeo_clown/deploy_strategy_spec.rb