From caebfaf875056a8983589eb8c1e9124f831df549 Mon Sep 17 00:00:00 2001 From: toyhammered Date: Tue, 5 Jul 2016 23:07:02 -0700 Subject: [PATCH] take 4 --- .../lib/data_import/my_anime_list/extractor/media_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/spec/lib/data_import/my_anime_list/extractor/media_spec.rb b/server/spec/lib/data_import/my_anime_list/extractor/media_spec.rb index 326c50a9f..8709bf22f 100644 --- a/server/spec/lib/data_import/my_anime_list/extractor/media_spec.rb +++ b/server/spec/lib/data_import/my_anime_list/extractor/media_spec.rb @@ -229,7 +229,7 @@ it 'should return the Japanese title of media' do expect(subject.titles[:ja_jp]).to eq('カウボーイビバップ') end - it 'should prevent an error if English or Japanese title does not exist' do + it 'should return nil if English or Japanese title does not exist' do subject = described_class.new({ other_titles: {} }.to_json) expect(subject.titles[:en_us]).to be_nil @@ -252,7 +252,7 @@ end it 'should return all genres' do - expect(subject.genres).to eq(["Action", "Adventure", "Comedy", "Drama", "Sci-Fi", "Space"]) + expect(subject.genres).to eq(%w(Action Adventure Comedy Drama Sci-Fi Space)) end end @@ -342,10 +342,10 @@ end it 'should return all genres' do - expect(subject.genres).to eq(%w[Action Adventure Demons + expect(subject.genres).to eq(%w(Action Adventure Demons Drama Fantasy Horror Supernatural Military - Psychological Seinen]) + Psychological Seinen)) end end