test/display_test.rb in iba-0.0.3 vs test/display_test.rb in iba-0.0.4
- old
+ new
@@ -1,6 +1,6 @@
-require File.expand_path('test_helper.rb', File.dirname(__FILE__))
+require_relative 'test_helper'
# Test how the combinator displays the parsed block contents.
class DisplayTest < Test::Unit::TestCase
def test_empty_combinator
assert_equal 'nil', combinator {}.to_s
@@ -9,10 +9,10 @@
def test_literal_number
assert_equal '23', combinator { 23 }.to_s
end
def test_literal_string
- assert_equal "\"aa\"", combinator { 'aa' }.to_s
+ assert_equal '"aa"', combinator { 'aa' }.to_s
end
def test_method_calls
assert_equal 'foo', combinator { foo }.to_s
assert_equal 'foo.foo', combinator { foo.foo }.to_s