Sha256: aaa6874267089f7034f9433957de486c26e5ec0e10f3a459b151cfa5b3931455
Contents?: true
Size: 550 Bytes
Versions: 16
Compression:
Stored size: 550 Bytes
Contents
require 'spec_helper' describe 'FormHelper' do include RSpec::Rails::HelperExampleGroup describe '#jquery_form_for' do it 'yields an instance of JqueryUiForm::FormBuilder' do helper.jquery_form_for(:new_post, :url => '/hello') do |builder| builder.class.should == JqueryUiForm::FormBuilder end end it 'adds a class of "ui-form" to the generated form' do helper.jquery_form_for(:new_post, :url => '/hello') do |builder| end.should have_selector("form.ui-form") end end end
Version data entries
16 entries across 16 versions & 1 rubygems