Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
Cleanup -- fix naming from test/shopify_liquid/scope_index to `test…
Browse files Browse the repository at this point in the history
…/shopify_liquid/source_index/`
  • Loading branch information
mgmanzella committed Nov 29, 2022
1 parent c8900a0 commit 95f2009
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/shopify_liquid/source_index/filter_state_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

require 'test_helper'

module ThemeCheck
module ShopifyLiquid
class SourceIndex
class FilterStateTest < Minitest::Test
def test_state_changes
FilterState.mark_up_to_date
refute(FilterState.outdated?)

FilterState.mark_outdated
assert(FilterState.outdated?)
end
end
end
end
end
19 changes: 19 additions & 0 deletions test/shopify_liquid/source_index/object_state_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

require 'test_helper'

module ThemeCheck
module ShopifyLiquid
class SourceIndex
class ObjectStateTest < Minitest::Test
def test_state_changes
ObjectState.mark_up_to_date
refute(ObjectState.outdated?)

ObjectState.mark_outdated
assert(ObjectState.outdated?)
end
end
end
end
end
19 changes: 19 additions & 0 deletions test/shopify_liquid/source_index/tag_state_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

require 'test_helper'

module ThemeCheck
module ShopifyLiquid
class SourceIndex
class TagStateTest < Minitest::Test
def test_state_changes
TagState.mark_up_to_date
refute(TagState.outdated?)

TagState.mark_outdated
assert(TagState.outdated?)
end
end
end
end
end

0 comments on commit 95f2009

Please sign in to comment.