# frozen_string_literal: true

require_relative "../acceptance_test"

# :stopdoc:
class Admin::CategoriesTest < AcceptanceTest
  test "edit" do
    FactoryBot.create(:discipline)

    Calculations::V3::Calculation.create!(
      members_only: true,
      name: "Ironman",
      points_for_place: 1
    )

    login_as FactoryBot.create(:administrator)

    visit "/calculations"
  end
end

# frozen_string_literal: true

require_relative "../acceptance_test"

# :stopdoc:
class CategoriesTest < AcceptanceTest
  test "edit" do
    FactoryBot.create(:discipline)

    Calculations::V3::Calculation.create!(
      members_only: true,
      name: "Ironman",
      points_for_place: 1
    )

    login_as FactoryBot.create(:administrator)

    visit "/calculations"
  end
end

--- 
+++ 
@@ -3,7 +3,7 @@
 require_relative "../acceptance_test"
 
 # :stopdoc:
-class CategoriesTest < AcceptanceTest
+class Admin::CategoriesTest < AcceptanceTest
   test "edit" do
     FactoryBot.create(:discipline)
 
Fix name clash in test
