Sha256: 901c1f2c3eb03f1bb854e1dc3cb6d06d8ff9f2921ced15950d29c1a0e9e95cc6
Contents?: true
Size: 853 Bytes
Versions: 12
Compression:
Stored size: 853 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' require 'spec/test_to_spec/test_case_ext' require 'spec/test_to_spec/testfiles/test_unit_api_test' require 'tempfile' class TestCaseExtTest < Test::Unit::TestCase def test_to_rspec_should_return_rspec_context translated = TestUnitApiTest.to_rspec translated_tmp = Tempfile.open("translated") translated_tmp.write(translated) translated_tmp.flush translated_tmp.close expected_path = File.dirname(__FILE__) + '/testfiles/test_unit_api_spec.rb' expected = File.open(expected_path).read diff = `diff -w -u #{expected_path} #{translated_tmp.path}` if diff.strip != "" # We should fail here.... #fail("Conversion didn't match expectation. Diff:\n#{diff}") else assert true # Just so we get an assertion count in the output end end end
Version data entries
12 entries across 12 versions & 1 rubygems