Skip to content

Commit

Permalink
obey rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kinoppyd committed Jan 1, 2025
1 parent 0bb8e36 commit cdac29b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ gem 'rexml', '~> 3.2'

gem 'solid_queue', '~> 0.3.0'

gem "solid_cache", "~> 1.0"
gem 'solid_cache', '~> 1.0'
8 changes: 4 additions & 4 deletions test/models/schedule/tables_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ def setup
assert_equal feature_time, tables.updated_at
end

test "#id returns schedules event name" do
test '#id returns schedules event name' do
assert_equal events(:kaigi).name, @tables.id
end

test "#cache_key returns cache key with cache version string" do
assert_match /schedules\/#{events(:kaigi).name}-\d{20}/, @tables.cache_key
test '#cache_key returns cache key with cache version string' do
assert_match(%r{schedules/#{events(:kaigi).name}-\d{20}}, @tables.cache_key)
end

test "when schedule record updated, #cache_key version string changes" do
test 'when schedule record updated, #cache_key version string changes' do
old_key = @tables.cache_key

feature_time = Time.current + 10.seconds
Expand Down

0 comments on commit cdac29b

Please sign in to comment.