Sha256: e2fdf812b8bb26c7d136722904d18d7eabfed105885a0795ede8bb2e9e2c1a65

Contents?: true

Size: 260 Bytes

Versions: 13

Compression:

Stored size: 260 Bytes

Contents

module Spec

	class KindNegator < ShouldBase
	
		def initialize(target)
			@target = target
		end
		
		def of(expected_class)
			fail_with_message(default_message("should not be a kind of", expected_class)) if @target.kind_of? expected_class
		end
		
	end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-0.5.11 lib/spec/api/helper/kind_negator.rb
rspec-0.5.10 lib/spec/api/helper/kind_negator.rb
rspec-0.4.0 lib/spec/kind_negator.rb
rspec-0.5.0 lib/spec/api/helper/kind_negator.rb
rspec-0.5.1 lib/spec/api/helper/kind_negator.rb
rspec-0.5.5 lib/spec/api/helper/kind_negator.rb
rspec-0.5.8 lib/spec/api/helper/kind_negator.rb
rspec-0.5.7 lib/spec/api/helper/kind_negator.rb
rspec-0.5.9 lib/spec/api/helper/kind_negator.rb
rspec-0.5.2 lib/spec/api/helper/kind_negator.rb
rspec-0.5.6 lib/spec/api/helper/kind_negator.rb
rspec-0.5.3 lib/spec/api/helper/kind_negator.rb
rspec-0.5.4 lib/spec/api/helper/kind_negator.rb