Sha256: c31a6d614521b213ec15fed50d32d62f45e7c20acf0d00f045c0f8969b3ff9a7

Contents?: true

Size: 787 Bytes

Versions: 7

Compression:

Stored size: 787 Bytes

Contents

require "test_helper"

class RoutesTest < ActiveSupport::TestCase

  setup do
    # @routes = Admin::Engine.routes.routes.map(&:name)
    @routes = Rails.application.routes.routes.map(&:name)
  end

  should "have dashboard routes" do
    expected = %w(admin_dashboard)
    expected.each { |r| assert @routes.include?(r) }
  end

  should "have account routes" do
    expected = %w(forgot_password_admin_account_index
                  send_password_admin_account_index
                  admin_account_index
                  new_admin_account
                  admin_account)

    expected.each { |r| assert @routes.include?(r) }
  end

  should "have session routes" do
    expected = %w(new_admin_session admin_session)
    expected.each { |r| assert @routes.include?(r) }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-3.1.0.rc7 test/config/routes_test.rb
typus-3.1.0.rc6 test/config/routes_test.rb
typus-3.1.0.rc5 test/config/routes_test.rb
typus-3.1.0.rc4 test/config/routes_test.rb
typus-3.1.0.rc3 test/config/routes_test.rb
typus-3.1.0.rc2 test/config/routes_test.rb
typus-3.1.0.rc1 test/config/routes_test.rb