Sha256: f7fef13f99a4218239b8986f21c04fb1d12fe64fc8afbf54fd49796c4a4fb3a3

Contents?: true

Size: 668 Bytes

Versions: 16

Compression:

Stored size: 668 Bytes

Contents

require 'spec_helper'

describe 'HiddenInput' do
  
  include RSpec::Rails::HelperExampleGroup
  include Webrat::HaveTagMatcher
  
  before(:each) do
    
  end
  
  it "should return hidden tag" do
    helper.jquery_form_for(:new_post, :as => @object, :url => '/hello') do |builder|
      builder.input(:login, :as => :hidden).should have_tag("input[type='hidden']")
    end
  end
  
  it "should return hidden tag with options" do
    helper.jquery_form_for(:new_post, :as => @object, :url => '/hello') do |builder|
      builder.input(:login, :as => :hidden, "data-name" =>"my-name").should have_tag("input[type='hidden'][data-name='my-name']")
    end
  end
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

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