Sha256: 48be841a985998787a1432bbb8de3bec6005d8ae6ba96929270500a879565292
Contents?: true
Size: 657 Bytes
Versions: 16
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper' describe 'PhoneInput' do include RSpec::Rails::HelperExampleGroup include Webrat::HaveTagMatcher before(:each) do end it "should return phone tag" do helper.jquery_form_for(:new_post, :as => @object, :url => '/hello') do |builder| builder.input(:phone).should have_tag("input[type='tel'].ui-phone-input") end end it "should return phone tag with options" do helper.jquery_form_for(:new_post, :as => @object, :url => '/hello') do |builder| builder.input(:phone, "data-name" =>"my-name").should have_tag("input[type='tel'][data-name='my-name'].ui-phone-input") end end end
Version data entries
16 entries across 16 versions & 1 rubygems