mirror of
https://github.com/iv-org/invidious
synced 2024-11-27 13:33:28 +01:00
Call as?
instead of as
to not force string conversion
This commit is contained in:
parent
248df785d7
commit
3bac467a8c
@ -67,7 +67,7 @@ Spectator.describe "parse_video_info" do
|
|||||||
# Video metadata
|
# Video metadata
|
||||||
|
|
||||||
expect(info["genre"].as_s).to eq("Entertainment")
|
expect(info["genre"].as_s).to eq("Entertainment")
|
||||||
expect(info["genreUcid"].as_s).to be_nil
|
expect(info["genreUcid"].as_s?).to be_nil
|
||||||
expect(info["license"].as_s).to be_empty
|
expect(info["license"].as_s).to be_empty
|
||||||
|
|
||||||
# Author infos
|
# Author infos
|
||||||
@ -151,7 +151,7 @@ Spectator.describe "parse_video_info" do
|
|||||||
# Video metadata
|
# Video metadata
|
||||||
|
|
||||||
expect(info["genre"].as_s).to eq("Music")
|
expect(info["genre"].as_s).to eq("Music")
|
||||||
expect(info["genreUcid"].as_s).to be_nil
|
expect(info["genreUcid"].as_s?).to be_nil
|
||||||
expect(info["license"].as_s).to be_empty
|
expect(info["license"].as_s).to be_empty
|
||||||
|
|
||||||
# Author infos
|
# Author infos
|
||||||
|
@ -94,7 +94,7 @@ Spectator.describe "parse_video_info" do
|
|||||||
# Video metadata
|
# Video metadata
|
||||||
|
|
||||||
expect(info["genre"].as_s).to eq("Entertainment")
|
expect(info["genre"].as_s).to eq("Entertainment")
|
||||||
expect(info["genreUcid"].as_s).to be_nil
|
expect(info["genreUcid"].as_s?).to be_nil
|
||||||
expect(info["license"].as_s).to be_empty
|
expect(info["license"].as_s).to be_empty
|
||||||
|
|
||||||
# Author infos
|
# Author infos
|
||||||
|
Loading…
Reference in New Issue
Block a user