~tim/scheme-vm

51f7a4a63655aae14148b9c80783a55808bc8f82 — Tim Morgan 5 years ago 0cce75a
Change how scheme specs are run with rspec
1 files changed, 5 insertions(+), 5 deletions(-)

M spec/lib_spec.rb
M spec/lib_spec.rb => spec/lib_spec.rb +5 -5
@@ 1,10 1,10 @@
require_relative './spec_helper'
require 'stringio'

describe 'Libs' do
  it 'passes all tests' do
    failed = false
    Dir[File.expand_path('../lib/**/*.scm', __FILE__)].each do |path|
Dir[File.expand_path('../lib/**/*.scm', __FILE__)].each do |path|
  describe File.split(path).last do
    it 'passes all tests' do
      failed = false
      out = StringIO.new
      Program.new(File.read(path), filename: File.split(path).last, stdout: out).run
      out.rewind


@@ 14,7 14,7 @@ describe 'Libs' do
        puts result
        failed = true
      end
      fail 'spec failed' if failed
    end
    fail 'spec failed' if failed
  end
end