Skip to content
Browse files

Adjusted specs to look for 'controls' css classes.

  • Loading branch information...
1 parent 602ff80 commit ac89b97f72da24fe7df18e6bc2f36784130a2786 @suranyami committed Mar 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 spec/helpers/input_helper_spec.rb
  2. +1 −1 spec/inputs/hidden_input_spec.rb
View
2 spec/helpers/input_helper_spec.rb
@@ -828,7 +828,7 @@ def length_should_be_required(options)
it 'should append given classes to li default classes' do
concat(semantic_form_for(@new_post) do |builder|
- concat(builder.input(:title, :wrapper_html => {:class => :another_class}, :required => true))
+ concat(builder.input(:title, :wrapper_html => {:class => [:another_class]}, :required => true))
end)
output_buffer.should have_tag("form div.clearfix.string")
output_buffer.should have_tag("form div.clearfix.required")
View
2 spec/inputs/hidden_input_spec.rb
@@ -45,7 +45,7 @@
end
it "should pass any option specified using :input_html" do
- output_buffer.should have_tag("form div.clearfix div.input input#new_post_reviewer[@type=\"hidden\"][@class=\"new_post_reviewer\"]")
+ output_buffer.should have_tag("form div.clearfix div.input input#new_post_reviewer[@type=\"hidden\"][@class=\"new_post_reviewer controls\"]")
end
it "should prefer :input_html over directly supplied options" do

0 comments on commit ac89b97

Please sign in to comment.
Something went wrong with that request. Please try again.