Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make the tests work with rails 3.2.

  • Loading branch information...
commit 77a2ca1aca6d6f188379319bd305dc19321ae54b 1 parent 43295db
@apotonick authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/widget_test.rb
View
6 test/widget_test.rb
@@ -110,7 +110,11 @@ class WidgetTest < ActiveSupport::TestCase
end
should "respond to .view_paths" do
- assert_equal ActionView::PathSet.new(Apotomo::Widget::DEFAULT_VIEW_PATHS + ["test/widgets"]), Apotomo::Widget.view_paths
+ if Cells.rails3_2_or_more?
+ assert_equal ActionView::PathSet.new(Apotomo::Widget::DEFAULT_VIEW_PATHS + ["test/widgets"]).paths, Apotomo::Widget.view_paths.paths
+ else
+ assert_equal ActionView::PathSet.new(Apotomo::Widget::DEFAULT_VIEW_PATHS + ["test/widgets"]), Apotomo::Widget.view_paths
+ end
end
should "respond to .controller_path" do
Please sign in to comment.
Something went wrong with that request. Please try again.