Sha256: b9307a60cee731b97dd70b1efe9ce2b21545773183b2138be559d46c3d3ad71d
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' require 'capistrano' describe Capistrano::Env::Plugin do let(:capistrano) { Capistrano::Configuration.new } describe "#capenv" do let(:setup) { capistrano.capenv.use {|config| config.add "HELLO", "WORLD" } } it "add task" do expect(capistrano.capenv).to receive(:add) setup end it { expect(setup).to be_a Capistrano::Env::Config } it "set default_environment" do setup expect(capistrano.fetch(:default_environment)).to eq "HELLO" => "WORLD" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-env-0.1.0 | spec/capistrano/env/plugin_spec.rb |
capistrano-env-0.0.7 | spec/capistrano/env/plugin_spec.rb |