test/errors_test.rb in reform-2.0.5 vs test/errors_test.rb in reform-2.1.0.rc1

- old
+ new

@@ -81,13 +81,13 @@ end end describe "#validate with main form invalid" do - before { @result = form.validate("title"=>"", "band"=>{"label"=>{:name => "Fat Wreck"}}) } - - it { @result.must_equal false } - it { form.errors.messages.must_equal({:title=>["can't be blank"]}) } + it do + form.validate("title"=>"", "band"=>{"label"=>{:name => "Fat Wreck"}}).must_equal false + form.errors.messages.must_equal({:title=>["can't be blank"]}) + end end describe "#validate with middle nested form invalid" do before { @result = form.validate("hit"=>{"title" => ""}, "band"=>{"label"=>{:name => "Fat Wreck"}}) } \ No newline at end of file