spec/liquidscript/icr/set_spec.rb in liquidscript-0.11.0.rc1 vs spec/liquidscript/icr/set_spec.rb in liquidscript-0.11.0
- old
+ new
@@ -11,16 +11,16 @@
specify { expect(subject.to_a).to have(1).item }
context "with metadata" do
subject do
set = ICR::Set.new
- set.metadata.merge! :hello => "world"
+ set.metadata.merge! :arguments => "world"
set
end
specify { expect(subject.to_a).to have(2).items }
- specify { expect(subject.to_a).to eq [:exec, [:_hello, "world"]] }
+ specify { expect(subject.to_a).to eq [:exec, [:_arguments, "world"]] }
end
context "with codes" do
subject do
@@ -35,16 +35,16 @@
end
context "with both" do
subject do
set = ICR::Set.new
- set.metadata.merge! :hello => "world"
+ set.metadata.merge! :arguments => "world"
set << "test"
set
end
specify { expect(subject.to_a).to have(3).items }
- specify { expect(subject.to_a).to eq [:exec, [:_hello, "world"], "test"] }
+ specify { expect(subject.to_a).to eq [:exec, [:_arguments, "world"], "test"] }
end
end
describe "#add" do