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

Version Path
jquery-ui-form-0.2.8 spec/form_helper_spec.rb
jquery-ui-form-0.2.7 spec/form_helper_spec.rb
jquery-ui-form-0.2.6 spec/form_helper_spec.rb
jquery-ui-form-0.2.5 spec/form_helper_spec.rb
jquery-ui-form-0.2.4 spec/form_helper_spec.rb
jquery-ui-form-0.2.3 spec/form_helper_spec.rb
jquery-ui-form-0.2.2 spec/form_helper_spec.rb
jquery-ui-form-0.2.1 spec/form_helper_spec.rb
jquery-ui-form-0.2.0 spec/form_helper_spec.rb
jquery-ui-form-0.1.6 spec/form_helper_spec.rb
jquery-ui-form-0.1.5 spec/form_helper_spec.rb
jquery-ui-form-0.1.4 spec/form_helper_spec.rb
jquery-ui-form-0.1.3 spec/form_helper_spec.rb
jquery-ui-form-0.1.2 spec/form_helper_spec.rb
jquery-ui-form-0.1.1 spec/form_helper_spec.rb
jquery-ui-form-0.1.0 spec/form_helper_spec.rb