mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
15 lines
436 B
Ruby
15 lines
436 B
Ruby
require 'spec_helper'
|
|
|
|
|
|
describe CheckoutHelper do
|
|
it "generates html for validated inputs" do
|
|
helper.should_receive(:render).with(
|
|
partial: "shared/validated_input",
|
|
locals: {name: "test", path: "foo",
|
|
attributes: {:required=>true, :type=>:email, :name=>"foo", :id=>"foo", "ng-model"=>"foo", "ng-class"=>"{error: !fieldValid('foo')}"}}
|
|
)
|
|
|
|
helper.validated_input("test", "foo", type: :email)
|
|
end
|
|
end
|