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