Retrospring/spec/support/pghero_stubby.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
520 B
Ruby
Raw Normal View History

2022-06-21 12:33:46 -07:00
# frozen_string_literal: true
# in spec/integration/role_constrained_routes_spec.rb we test for access to
# the pghero route, which fails because the PgHero::HomeController performs
# some queries which do not seem to work in a transaction
#
# since we don't need PgHero to work in tests stubbing it away should be^W^W
# is expected to be fine ;-)
class PgHero::HomeController
def index
render plain: "DB < ÖBB"
end
def set_database; end
2022-06-21 12:36:42 -07:00
2022-06-21 12:33:46 -07:00
def set_query_stats_enabled; end
2022-06-21 12:36:42 -07:00
2022-06-21 12:33:46 -07:00
def set_show_details; end
end