Sha256: 2e89c2555f28938e0394dd7ade2bdb8ba2eacce76e7d9ca9d23a646e5c23fbc3
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' module Alf describe Relvar, 'empty!' do include Relvar subject{ empty! } context 'on an empty relvar' do let(:to_cog){ [] } it{ should be(self) } end context 'on an non empty relvar' do let(:to_cog){ [ 1 ] } it "should raise a fact error" do lambda{ subject }.should raise_error(Alf::FactAssertionError) end end context 'on an non empty relvar with an error message' do let(:to_cog){ [ 1 ] } it "should raise a fact error" do lambda{ empty!("foo") }.should raise_error(Alf::FactAssertionError, /foo/) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems