Sha256: a78dc7cc85bb9556fc2719272b415e5d3c10b8335a732cf8eee6386e9e7929e6

Contents?: true

Size: 664 Bytes

Versions: 16

Compression:

Stored size: 664 Bytes

Contents

require 'spec_helper'

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

Version data entries

16 entries across 16 versions & 1 rubygems

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