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