Categories: None [Edit]

kiosk-test-support

https://rubygems.org/gems/kiosk-test-support
https://github.com/kiosk-hq/kiosk
kiosk-test-support is the framework-agnostic test surface a Kiosk provider uses on their OWN application. It carries two things. The CONFORMANCE CHECKS assert the four properties the protocol makes normative of an origin: that its routes resolve, that a verb executes, that a query answers the shape it declared, and that data access is scoped to the authenticated principal. They ship with a Minitest adapter and an RSpec adapter, both loaded by explicit require, so the same fault reads identically in either framework. The JOURNEY DSL carries the identity-scoped call helpers (`as_agent_of`, `as_user`, `as_agent`, `as_anonymous`, `query`, `run_query`, `run_action`, `pay_action`, `kiosk_seed`), the pluggable executor contract, a NullExecutor for self-tests, and the structured error classes (`RLSDenied`, `QuotaExceeded`, `ExecutorNotConfigured`). It is connected to RSpec by `kiosk-rls-rspec` and into Minitest by `kiosk-rls-minitest`. The ASSISTANT drives an origin over HTTP as an assistant does: it registers, solves proof-of-work tolls, queries, runs, pays with signed mandates and listens on the event stream. `Kyc` stands in for the operator's KYC provider, and `StripeMock` fronts a local stripe-mock. `InProcessExecutor`, `InProcessWire` and `Conformance::InProcessOrigin` run against kiosk-server, and `Person` signs in through kiosk-user-idp-devise; both are dependencies. The host's bundle brings the rest: the Minitest and RSpec adapters use the test framework the host runs, `LiveServer` serves the app with Puma, and `Wire` solves Equihash tolls with kiosk-pow-equihash.

Total

Ranking: 194,081 of 199,228
Downloads: 692

Daily

Ranking: 110,945 of 199,184
Downloads: 3

Depended by

RankDownloadsName
194,592638kiosk-redteam
194,643633kiosk-rls-minitest
194,763621kiosk-rls-rspec

Depends on

RankDownloadsName
41851,673,227jwt
70676,349,705websocket-driver
69787,887,826json_schemer
193,275783kiosk-core
194,009699kiosk-server
194,536644kiosk-user-idp-devise

Owners

#GravatarHandle
1iconpirj