spec/lib/builder/source_spec.rb in vx-builder-0.0.2 vs spec/lib/builder/source_spec.rb in vx-builder-0.0.3
- old
+ new
@@ -25,13 +25,14 @@
context "(serialization)" do
context "build new instance" do
let(:expected) { {
- "rvm" => ["2.0.0"],
- "before_script" => ["echo before_script"],
- "script" => ["RAILS_ENV=test ls -1 && echo DONE!"],
+ "rvm" => ["2.0.0"],
+ "before_script" => ["echo before_script"],
+ "before_install" => ["echo before_install"],
+ "script" => ["RAILS_ENV=test ls -1 && echo DONE!"],
"env" => {
"matrix" => [],
"global" => []
}
} }
@@ -48,9 +49,10 @@
context "from_attributes" do
let(:attrs) {{
rvm: "2.0.0",
before_script: "echo before_script",
+ before_install: "echo before_install",
script: "RAILS_ENV=test ls -1 && echo DONE!"
}}
subject { described_class.from_attributes(attrs).attributes }
it { should eq expected }
end