Merge pull request #2762 from matthewmcgarvey/spectactor

Switch to using Spectator for specs
This commit is contained in:
Samantaz Fox 2022-01-08 16:22:10 +01:00 committed by GitHub
commit b782ab5787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 126 additions and 112 deletions

View file

@ -40,6 +40,10 @@ shards:
git: https://github.com/luislavena/radix.git
version: 0.4.1
spectator:
git: https://github.com/icy-arctic-fox/spectator.git
version: 0.10.3
sqlite3:
git: https://github.com/crystal-lang/crystal-sqlite3.git
version: 0.18.0

View file

@ -28,6 +28,10 @@ dependencies:
athena-negotiation:
github: athena-framework/negotiation
version: ~> 0.1.1
development_dependencies:
spectator:
github: icy-arctic-fox/spectator
version: ~> 0.10.3
crystal: ">= 1.0.0, < 2.0.0"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

18
spec/spec_helper.cr Normal file
View file

@ -0,0 +1,18 @@
require "kemal"
require "openssl/hmac"
require "pg"
require "protodec/utils"
require "yaml"
require "../src/invidious/helpers/*"
require "../src/invidious/channels/*"
require "../src/invidious/videos"
require "../src/invidious/comments"
require "../src/invidious/playlists"
require "../src/invidious/search"
require "../src/invidious/trending"
require "spectator"
Spectator.configure do |config|
config.fail_blank
config.randomize
end