test/controller_test.rb in menu_builder-0.3.0 vs test/controller_test.rb in menu_builder-0.3.1
- old
+ new
@@ -1,7 +1,13 @@
require "test_helper"
+class ActiveSupport::TestCase
+ setup do
+ @routes = MenuBuilder::Routes
+ end
+end
+
class BooksController < ApplicationController
menu_item :home
def index
end
@@ -13,6 +19,6 @@
test "should assigns the current tab" do
get :index
assert_equal(:home, assigns(:menu_item))
end
-end
+end
\ No newline at end of file