Skip to content
Browse files

add test case for multiple content_for calls with body_class

  • Loading branch information...
1 parent 9330ebd commit db68f4c5ae818cbe8e7da8a2340f0e3e2faf587c @mjankowski mjankowski committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/helpers/body_class_helper_spec.rb
View
4 spec/helpers/body_class_helper_spec.rb
@@ -36,4 +36,8 @@
it "adds extra body classes to the controller classes" do
helper.body_class.should == 'widgets widgets-show extra_class'
end
+ it "adds extra body classes to the controller classes when #content_for= is called many times" do
+ helper.content_for(:extra_body_classes, ' many extra classes')
+ helper.body_class.should == 'widgets widgets-show extra_class many extra classes'
+ end
end

0 comments on commit db68f4c

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