Skip to content

Commit

Permalink
Test chart ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jul 10, 2020
1 parent a6366ca commit 57551ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/chartkick_test.rb
Expand Up @@ -104,6 +104,13 @@ def test_default_options
Chartkick.options = {}
end

def test_chart_ids
@chartkick_chart_id = 0
3.times do |i|
assert_match "chart-#{i + 1}", line_chart(@data)
end
end

def assert_chart(chart)
assert_match "new Chartkick", chart
end
Expand Down

0 comments on commit 57551ee

Please sign in to comment.