Sha256: ca985e87a4f6cb87877afcced0405b32046a2898368b5f6fae684553b56098bd

Contents?: true

Size: 670 Bytes

Versions: 16

Compression:

Stored size: 670 Bytes

Contents

require 'spec_helper'

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

Version data entries

16 entries across 16 versions & 1 rubygems

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