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

Version Path
ehbrs-tools-0.35.1 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.35.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.34.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.33.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.32.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.31.1 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.31.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.30.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.29.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.28.3 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.28.2 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.28.1 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.28.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.27.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.26.0 spec/lib/ehbrs/vg/wii/game_file_spec.rb
ehbrs-tools-0.25.1 spec/lib/ehbrs/vg/wii/game_file_spec.rb