mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 13:42:27 +05:30
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