mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Merge pull request #2762 from matthewmcgarvey/spectactor
Switch to using Spectator for specs
This commit is contained in:
commit
b782ab5787
@ -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
|
||||
|
@ -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
100
spec/invidious/helpers_spec.cr
Normal file
100
spec/invidious/helpers_spec.cr
Normal file
File diff suppressed because one or more lines are too long
18
spec/spec_helper.cr
Normal file
18
spec/spec_helper.cr
Normal 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
|
Loading…
Reference in New Issue
Block a user