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