Sha256: 53b9fd0c5f8b95f246086d1a147679dd85433cd1c6b1653b724111a172169b6a
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) describe Formation::Types::Password do before do @field = Formation::Field.new('password', :type => :password) @type = @field.type end describe '.to_html' do describe 'with no value' do before do @field.value = nil end it 'should render correctly' do @type.to_html.must_equal <<-HTML.strip <input type="password" name="password" /> HTML end end describe 'with a value' do before do @field.value = 'testing' end it 'should render correctly' do @type.to_html.must_equal <<-HTML.strip <input type="password" name="password" /> HTML end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formation-0.0.1 | test/types/password_spec.rb |