From 52d86166bde852af5d8f44ef163f1aaec41dd856 Mon Sep 17 00:00:00 2001 From: YutaGoto <12590762+YutaGoto@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:23:02 +0900 Subject: [PATCH] :white_check_mark: update test for new structure --- spec/ika3/schedule_spec.rb | 4 ++-- spec/ika3/weapons_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/ika3/schedule_spec.rb b/spec/ika3/schedule_spec.rb index 11d013c..ed7ce70 100644 --- a/spec/ika3/schedule_spec.rb +++ b/spec/ika3/schedule_spec.rb @@ -47,14 +47,14 @@ describe '#salmon_run_now' do it 'get current salmon run' do - expect(schedule.salmon_run_now).to include('start_time') + # expect(schedule.salmon_run_now).to include('start_time') expect(schedule.salmon_run_now.weapons.count).to be(4) end end describe '#salmon_run_team_contest' do it 'get current salmon run team contest' do - expect(schedule.salmon_run_team_contest).to be_nil + expect(schedule.salmon_run_team_contest.stage).to be_nil end end end diff --git a/spec/ika3/weapons_spec.rb b/spec/ika3/weapons_spec.rb index aa5ccc7..a1c6409 100644 --- a/spec/ika3/weapons_spec.rb +++ b/spec/ika3/weapons_spec.rb @@ -9,13 +9,13 @@ describe '#find_by_name' do it 'get weapon info from name' do - expect(described_class.find_by_name(weapon_name)).to eq weapon + expect(described_class.find_by_name(weapon_name).name).to eq weapon_name end end describe '#filter_by_sub' do it 'get weapon info list from sub weapon' do - expect(described_class.filter_by_sub(sub_name)).to include weapon + expect(described_class.filter_by_sub(sub_name).map(&:name)).to include weapon_name end end