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