spec/mvcli/form/input_spec.rb in mvcli-0.0.9 vs spec/mvcli/form/input_spec.rb in mvcli-0.0.10

- old
+ new

@@ -89,7 +89,11 @@ Given(:input) {MVCLI::Form::Input.new :fields, [Integer]} context "passing a singular value" do When(:value) { input.value field: 10 } Then {value == [10]} end + context "when the value is retrieved with a transform" do + When(:value) { input.value(field: 10) {|v| v * 2} } + Then { value == [20] } + end end end