Skip to content

Commit

Permalink
Coverage for flushing memoized attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
svevang committed Oct 3, 2023
1 parent 332c371 commit 9c11185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/models/apple/show_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
apple_show.instance_variable_set(:@apple_episode_json, "foo")
apple_show.instance_variable_set(:@podcast_feeder_episodes, "foo")
apple_show.instance_variable_set(:@episodes, "foo")
apple_show.instance_variable_set(:@deleted_atepisodes, "foo")
apple_show.reload
assert_nil apple_show.instance_variable_get(:@apple_episode_json)
assert_nil apple_show.instance_variable_get(:@podcast_feeder_episodes)
assert_nil apple_show.instance_variable_get(:@episodes)
assert_nil apple_show.instance_variable_get(:@deleted_episodes)
end

it "doesn't raise an error if the attr isn't memoized" do
Expand Down

0 comments on commit 9c11185

Please sign in to comment.