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