Sha256: b689cbf9917e8584709fd52fdb7be4033e3738446d60ed4d5ecc137d46bff585
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' describe SignedForm::SimpleForm::FormBuilder do include ViewHelper before { SignedForm::HMAC.secret_key = "abc123" } after { SignedForm::HMAC.secret_key = nil } it 'should build a signed form' do content = signed_simple_form_for(:user) do |f| f.input :name f.input_field :bar end content.should =~ /form_signature/ data = get_data_from_form(content) data.should include(:user) data[:user].should include(:name, :bar) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
signed_form-simple_form-0.0.3 | spec/form_builder_spec.rb |