Call as? instead of as to not force string conversion
				
					
				
			This commit is contained in:
		| @@ -67,7 +67,7 @@ Spectator.describe "parse_video_info" do | ||||
|     # Video metadata | ||||
|  | ||||
|     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 | ||||
|  | ||||
|     # Author infos | ||||
| @@ -151,7 +151,7 @@ Spectator.describe "parse_video_info" do | ||||
|     # Video metadata | ||||
|  | ||||
|     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 | ||||
|  | ||||
|     # Author infos | ||||
|   | ||||
| @@ -94,7 +94,7 @@ Spectator.describe "parse_video_info" do | ||||
|     # Video metadata | ||||
|  | ||||
|     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 | ||||
|  | ||||
|     # Author infos | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 meatball
					meatball