Sha256: 0e641b57b9bd8beaf1d5442401efd272a0d24c678a66e03efc9055630b5cbad9

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

require "test_helper"

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

3 entries across 3 versions & 1 rubygems

Version Path
menu_builder-0.3.0 test/controller_test.rb
menu_builder-0.2.1 test/controller_test.rb
menu_builder-0.2.0 test/controller_test.rb