Skip to content

Commit

Permalink
Test dependency tracker parses quotes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rwz committed Jan 2, 2014
1 parent 9209a90 commit 86c9afd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/jbuilder_dependency_tracker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ def track_dependencies(source)

test 'detects dependency via direct partial! call' do
dependencies = track_dependencies <<-RUBY
json.partial! 'path/to/partial'
json.partial! 'path/to/partial', foo: bar
json.partial! 'path/to/another/partial', :fizz => buzz
RUBY

assert_equal %w[path/to/partial], dependencies
assert_equal %w[path/to/partial path/to/another/partial], dependencies
end

test 'detects dependency via direct partial! call with parens' do
Expand Down

0 comments on commit 86c9afd

Please sign in to comment.