Sha256: 924ba77822bf56f3c01bf0997ce6f66a8119cd703b57ae0ac8e465b1b3a56651

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

require 'spec_helper'
describe Qrb do

  it "should have a version number" do
    Qrb.const_defined?(:VERSION).should be_true
  end

  it 'should have DSL methods' do
    t = Qrb.type(Fixnum){|i| i>=0 }
    t.should be_a(Qrb::SubType)
    t.dress(12).should eq(12)
    ->{ t.dress(-12) }.should raise_error(Qrb::TypeError)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qrb-0.3.0 spec/unit/test_qrb.rb
qrb-0.2.0 spec/unit/test_qrb.rb
qrb-0.1.0 spec/unit/test_qrb.rb