Sha256: e75b5e4c59c3b64ddf405a7579aec31dd44c38a314c9061ccf99d2fbd620daac
Contents?: true
Size: 394 Bytes
Versions: 274
Compression:
Stored size: 394 Bytes
Contents
puts Dir::pwd require 'test/unit' begin require 'spec' rescue LoadError false end class RSpecTest < Test::Unit::TestCase def test_that_rspec_is_available assert_nothing_raised("\n\n * RSpec isn't available - please run: gem install rspec *\n\n"){ ::Spec } end def test_that_specs_pass assert(system(*%w{spec -f e -p **/*.rb spec}),"\n\n * Specs failed *\n\n") end end
Version data entries
274 entries across 274 versions & 26 rubygems