Skip to content

Commit

Permalink
ensure not showing admin without feature flag set
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Jan 8, 2025
1 parent 9f6ad47 commit 63ecbe0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/features/admin/project_life_cycle_step_definitions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@
end
end

context "as admin without feature flag", with_flag: { stages_and_gates: false } do
current_user { create(:admin) }

it "allows viewing definitions" do
definitions_page.visit!

definitions_page.expect_listed([])

definitions_page.expect_flash(
message: "[Error 404] The page you were trying to access doesn't exist or has been removed.",
type: :error
)
end
end

context "as admin with activated enterprise token", with_ee: %i[customize_life_cycle] do
current_user { create(:admin) }

Expand Down

0 comments on commit 63ecbe0

Please sign in to comment.