Skip to content

Commit

Permalink
Update node_shared_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Yavnikaa authored Apr 8, 2022
1 parent f09ff50 commit 09c8fa4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/unit/node_shared_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid notes-grid notes-grid-test notes-grid-test-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('notes-grid-test').length
assert_equal 3, html.scan('notes-grid-test').length
assert html.scan('<td class="title">').length > 1
end

Expand Down Expand Up @@ -80,7 +80,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid notes-grid notes-grid-activity-spectrometer notes-grid-activity-spectrometer-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('notes-grid-activity-spectrometer').length
assert_equal 3, html.scan('notes-grid-activity-spectrometer').length
assert_equal 1, html.scan('<td class="title">').length
end

Expand All @@ -90,7 +90,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid questions-grid questions-grid-spectrometer questions-grid-spectrometer-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('questions-grid-spectrometer').length
assert_equal 3, html.scan('questions-grid-spectrometer').length
assert html.scan('<td class="title">').length > 1
end

Expand All @@ -102,7 +102,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert_equal 1, html.scan('<table class="table inline-grid activity-grid activity-grid-spectrometer activity-grid-spectrometer-').length
assert_equal 7, html.scan('<td').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('activity-grid-spectrometer').length
assert_equal 3, html.scan('activity-grid-spectrometer').length
assert_equal 1, html.scan('<td class="title">').length
end

Expand All @@ -112,7 +112,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid upgrades-grid upgrades-grid-latest upgrades-grid-latest-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('upgrades-grid-latest').length
assert_equal 3, html.scan('upgrades-grid-latest').length
assert html.scan('<td class="title">').length > 1
end

Expand Down Expand Up @@ -203,7 +203,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid notes-grid notes-grid-test notes-grid-test-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('notes-grid-test').length
assert_equal 3, html.scan('notes-grid-test').length
assert_equal 5, html.scan('<td').length
end

Expand All @@ -213,7 +213,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid questions-grid questions-grid-spectrometer questions-grid-spectrometer-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('questions-grid-spectrometer').length
assert_equal 3, html.scan('questions-grid-spectrometer').length
assert html.scan('<td class="title">').length > 1
end

Expand All @@ -223,7 +223,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid questions-grid questions-grid-spectrometer questions-grid-spectrometer-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('questions-grid-spectrometer').length
assert_equal 3, html.scan('questions-grid-spectrometer').length
assert html.scan('<td class="title">').length > 1
end

Expand All @@ -235,7 +235,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert_equal 1, html.scan('<table class="table inline-grid activity-grid activity-grid-spectrometer activity-grid-spectrometer-').length
assert_equal 4, html.scan('<td').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('activity-grid-spectrometer').length
assert_equal 3, html.scan('activity-grid-spectrometer').length
end

test 'about ability of power tags to exclude tags like [upgrades:foo!foo1]' do
Expand All @@ -244,7 +244,7 @@ class NodeSharedTest < ActiveSupport::TestCase
assert html
assert_equal 1, html.scan('<table class="table inline-grid upgrades-grid upgrades-grid-latest upgrades-grid-latest-').length
assert_equal 1, html.scan('<table').length
assert_equal 5, html.scan('upgrades-grid-latest').length
assert_equal 3, html.scan('upgrades-grid-latest').length
assert html.scan('<td class="title">').length > 1
end

Expand Down

0 comments on commit 09c8fa4

Please sign in to comment.