diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-24 16:26:09 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-24 16:26:09 -0700 |
commit | 93d72131bcc24ccb5536bec672d2dac94f8de651 (patch) | |
tree | b0bddcce28817906b483c8f73c574d350ac844c4 /test/test_select_manager.rb | |
parent | 24995298face1d08ffb52f6c1b0374feeb7a380b (diff) | |
download | rails-93d72131bcc24ccb5536bec672d2dac94f8de651.tar.gz rails-93d72131bcc24ccb5536bec672d2dac94f8de651.tar.bz2 rails-93d72131bcc24ccb5536bec672d2dac94f8de651.zip |
add the casting node to the AST at build time
If we add the casting node to the ast at build time, then we can avoid
doing the lookup at visit time.
Diffstat (limited to 'test/test_select_manager.rb')
-rw-r--r-- | test/test_select_manager.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb index cf8903a05b..7f025f7a02 100644 --- a/test/test_select_manager.rb +++ b/test/test_select_manager.rb @@ -5,7 +5,7 @@ module Arel describe 'select manager' do def test_join_sources manager = Arel::SelectManager.new Table.engine - manager.join_sources << Arel::Nodes::StringJoin.new('foo') + manager.join_sources << Arel::Nodes::StringJoin.new(Nodes.build_quoted('foo')) assert_equal "SELECT FROM 'foo'", manager.to_sql end @@ -602,7 +602,7 @@ module Arel it 'returns string join sql' do manager = Arel::SelectManager.new Table.engine - manager.from Nodes::StringJoin.new('hello') + manager.from Nodes::StringJoin.new(Nodes.build_quoted('hello')) manager.join_sql.must_be_like %{ 'hello' } end |