spec/lib/travis_spec.rb in evrone-ci-router-0.2.0.pre3 vs spec/lib/travis_spec.rb in evrone-ci-router-0.2.0.pre4
- old
+ new
@@ -143,20 +143,20 @@
let(:content) { { env: env } }
subject { travis.env }
context "when attributes[env] is Array" do
let(:env) { %w{ FOO=1 BAR=2 } }
- it { should eq %w{ FOO=1 BAR=2 } }
+ it { should eq("matrix"=>["FOO=1", "BAR=2"], "global"=>[]) }
end
context "when attributes[env] is Hash" do
let(:env) { { "matrix" => %w{ BAZ=1 } } }
- it { should eq %w{ BAZ=1 } }
+ it { should eq("matrix"=>["BAZ=1"], "global"=>[]) }
end
context "when attributes[env] is empty" do
let(:env) { {} }
- it { should eq([]) }
+ it { should eq("matrix"=>[], "global"=>[]) }
end
end
context "global_env" do
let(:content) { { env: env } }