Sha256: 9a31db3baffe387a1e2f8294eec26b8febaee6971d6277aedd6080b144fa01f3

Contents?: true

Size: 828 Bytes

Versions: 12

Compression:

Stored size: 828 Bytes

Contents

#!/usr/bin/ruby
# encoding: utf-8

require 'rspec'
require 'bluecloth'

require 'spec/lib/constants'
require 'spec/lib/matchers'

module BlueCloth::SpecHelpers
	include BlueCloth::Matchers

	###############
	module_function
	###############

	### Make an easily-comparable version vector out of +ver+ and return it.
	def vvec( ver )
		return ver.split('.').collect {|char| char.to_i }.pack('N*')
	end

end # module BlueCloth::SpecHelpers


### Mock with Rspec
Rspec.configure do |c|
	c.mock_with :rspec

	c.include( BlueCloth::SpecHelpers )
	c.include( BlueCloth::Matchers )

	c.filter_run_excluding( :ruby_19_only => true ) if
		BlueCloth::SpecHelpers.vvec( RUBY_VERSION ) < BlueCloth::SpecHelpers.vvec('1.9.0')
	c.filter_run_excluding( :pedantic => true ) unless
		ENV['MAINTAINER_MODE']
end

# vim: set nosta noet ts=4 sw=4:

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/bluecloth-2.1.0/spec/lib/helpers.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/bluecloth-2.1.0/spec/lib/helpers.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/bluecloth-2.1.0/spec/lib/helpers.rb
bluecloth-2.1.0-x86-mswin32 spec/lib/helpers.rb
bluecloth-2.1.0-x86-mingw32 spec/lib/helpers.rb
bluecloth-2.1.0 spec/lib/helpers.rb
bluecloth-2.0.11 spec/lib/helpers.rb
bluecloth-2.0.11-x86-mswin32 spec/lib/helpers.rb
bluecloth-2.0.11-x86-mingw32 spec/lib/helpers.rb
bluecloth-2.0.11pre158-x86-mingw32 spec/lib/helpers.rb
bluecloth-2.0.11pre158-x86-mswin32 spec/lib/helpers.rb
bluecloth-2.0.11pre158 spec/lib/helpers.rb