Sha256: 1686fc72e771ded456307c3c5f27570c1b1ce017065e68021e7d5598ee43546e

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

require "test_helper"

class ActiveSupport::TestCase
  setup do
    @routes = MenuBuilder::Routes
  end
end

class BooksController < ApplicationController
  menu_item :home

  def index
  end
end

class MenuBuilderTest < ActionController::TestCase
  tests BooksController

  test "should assigns the current tab" do
    get :index
    assert_equal(:home, assigns(:menu_item))
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
menu_builder-0.3.1 test/controller_test.rb