Skip to content

Commit

Permalink
✅ update test for new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
YutaGoto committed Feb 17, 2024
1 parent 6f7c929 commit 52d8616
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/ika3/schedule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions spec/ika3/weapons_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 52d8616

Please sign in to comment.