Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adjusted specs to look for 'controls' css classes.

  • Loading branch information...
commit ac89b97f72da24fe7df18e6bc2f36784130a2786 1 parent 602ff80
@suranyami authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.