Fix order of comparison in about symbols to follow standard.

This commit is contained in:
Jim Weirich
2013-04-09 11:26:58 -04:00
parent 197dd8eff8
commit 12639186cb

View File

@@ -50,14 +50,14 @@ class AboutSymbols < Neo::Koan
def test_symbols_with_spaces_can_be_built
symbol = :"cats and dogs"
assert_equal symbol, __("cats and dogs").to_sym
assert_equal __("cats and dogs").to_sym, symbol
end
def test_symbols_with_interpolation_can_be_built
value = "and"
symbol = :"cats #{value} dogs"
assert_equal symbol, __("cats and dogs").to_sym
assert_equal __("cats and dogs").to_sym, symbol
end
def test_to_s_is_called_on_interpolated_symbols