Sha256: 6f69f80b3ce1eb9cde4d42b7803909380d130990bdaf00891844ae38a02dccd7

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

require_relative "../lib/rubygb"
require "minitest/autorun"
require 'fileutils'

describe Rubygb do
  it "makes a gb file from a valid .s file" do
    tmp = Dir.mktmpdir
    Dir.chdir(tmp) do

      asm_file = File.join(File.dirname(__FILE__),"basic.s")
      FileUtils.copy(File.expand_path(asm_file), ".")

      Rubygb.build "basic.s"

      assert File.exists?("basic.gb"), "gb file should have been created"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubygb-0.2.2 spec/rubygb_spec.rb
rubygb-0.2.1 spec/rubygb_spec.rb
rubygb-0.2.0 spec/rubygb_spec.rb
rubygb-0.1.0 spec/rubygb_spec.rb