Sha256: 4730ec2eebeb60a88da4520d0c0afe98cd8f0502b1f218aa81c20372ca4c7ef2

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

require 'RubyExt/require'
require 'spec'

module RubyExt
	describe 'Assert' do
		it do
			lambda{should! :be_never_called}.should raise_error(/ever/)
			lambda{nil.should_not! :be_nil}.should raise_error(/nil/)
			1.should_not! :be_nil
			1.should! :==, 1
			lambda{1.should! :==, 2}.should raise_error(/==/)
			1.should! :be_in, [1, 2]
			"".should! :be_a, String
			String.should! :be, String			
			1.should! :<, 2
		end		
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
RubyExt-0.1.1 spec/assert_spec.rb
RubyExt-0.1.2 spec/assert_spec.rb