Sha256: cdd5a38df62d740f7e085eaedb198113ec613ece6a481e9197b816f5ff9da1dc

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'
require 'helpers/files'

require 'yasm/program'
require 'tempfile'

describe Program do
  include Helpers::Files

  subject { described_class.find }

  it "should be able to assemble a file" do
    file = Tempfile.new('yasm').path

    subject.assemble do |yasm|
      yasm.target! :x86

      yasm.syntax = :gas
      yasm.file = assembly_file('gas')
      yasm.output = file
    end

    File.size(file).should > 0
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-yasm-0.2.1 spec/program_spec.rb