Sha256: ad0503b2971822ca33445914c64beb3043a395b05d64d79d6b62c19c8110ceb2
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe "Alf's integration tests" do module Helpers def rel_equal(x, y) x.to_rel == y.to_rel end def specify(message, x) raise message unless x end end shared_examples_for "An integration file" do let(:lispy){ lispy = Alf.lispy(Alf::Environment.examples) lispy.ruby_extend(Helpers) } it "should work when executed with a Alf" do lispy.compile(File.read(subject)) end end # An example Dir["#{File.expand_path('../src', __FILE__)}/**/*.alf"].each do |file| describe file do subject{ file } it_should_behave_like "An integration file" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.9.2 | spec/integration/test_alf_specs.rb |
alf-0.9.1 | spec/integration/test_alf_specs.rb |