Skip to content

Commit

Permalink
fix for required attribute spec on textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrench committed Apr 5, 2011
1 parent 368d878 commit 050ed23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/inputs/text_input_spec.rb
Expand Up @@ -20,7 +20,7 @@
it_should_have_label_for("post_body")
it_should_have_textarea_with_id("post_body")
it_should_have_textarea_with_name("post[body]")
it_should_apply_error_logic_for_input_type(:numeric)
it_should_apply_error_logic_for_input_type(:number)

it 'should use input_html to style inputs' do
output_buffer.replace ''
Expand Down Expand Up @@ -85,7 +85,7 @@
concat(semantic_form_for(@new_post) do |builder|
concat(builder.input(:title, :as => :text, :required => true))
end)
output_buffer.should have_tag("input[@required]")
output_buffer.should have_tag("textarea[@required]")
end
end

Expand Down

0 comments on commit 050ed23

Please sign in to comment.