Sha256: 3cea507dfdc1381c285ce18b933cbaf3e345f5b579f748e1ef972b9b5472f611
Contents?: true
Size: 679 Bytes
Versions: 16
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true require 'ehbrs/vg/wii/game_file' RSpec.describe ::Ehbrs::Vg::Wii::GameFile do [['game.iso', 1, 'game'], ['disc1.iso', 1, 'game'], ['disc2.iso', 2, 'disc2'], ['Resident Evil - Code - Veronica X (USA) (Disc 1)', 1, 'game'], ['Resident Evil - Code - Veronica X (USA) (Disc 2)', 2, 'disc2']].each do |s| context "when game file is #{s[0]}" do let(:game_file) { described_class.new(s[0]) } it "disc_number should be #{s[1]}" do expect(game_file.disc_number).to eq(s[1]) end it "nintendont_basename should be #{s[2]}" do expect(game_file.nintendont_basename).to eq(s[2]) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems