Sha256: 1bbc5719209a8aad4756eb0ea39fada5cf79581f149301c361d2e6423c78de64

Contents?: true

Size: 779 Bytes

Versions: 26

Compression:

Stored size: 779 Bytes

Contents

require "test_helper"

class RoutesTest < ActiveSupport::TestCase

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

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

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

  should "verify admin account named routes" do
    expected = %w(forgot_password_admin_account_index admin_account_index new_admin_account admin_account)
    expected.each { |r| assert @routes.include?(r) }
  end

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

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
typus-3.0.11 test/config/routes_test.rb
typus-3.0.11.rc5 test/config/routes_test.rb
typus-3.0.11.rc4 test/config/routes_test.rb
typus-3.0.11.rc3 test/config/routes_test.rb
typus-3.0.11.rc2 test/config/routes_test.rb
typus-3.0.11.rc1 test/config/routes_test.rb
typus-3.0.10 test/config/routes_test.rb
typus-3.0.9 test/config/routes_test.rb
typus-3.0.8 test/config/routes_test.rb
typus-3.0.7 test/config/routes_test.rb
typus-3.0.2 test/lib/typus/routes_test.rb
typus-3.0.1 test/lib/typus/routes_test.rb
typus-3.0.0 test/lib/typus/routes_test.rb
typus-1.0.0.pre13 test/lib/typus/routes_test.rb
typus-1.0.0.pre12 test/lib/typus/routes_test.rb
typus-1.0.0.pre11 test/lib/typus/routes_test.rb
typus-1.0.0.pre10 test/lib/typus/routes_test.rb
typus-1.0.0.pre9 test/lib/typus/routes_test.rb
typus-1.0.0.pre8 test/lib/typus/routes_test.rb
typus-1.0.0.pre7 test/lib/typus/routes_test.rb