Skip to content

Commit

Permalink
Add missing negative cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hill committed Jan 9, 2024
1 parent c921031 commit b4b3c38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/testing_record/model_spec.rb
Expand Up @@ -77,6 +77,10 @@
it 'generates a new instance of the model entity' do
expect(Foo.create({})).to be_a Foo
end

it 'does not generate a cache add the entity to the cache' do
expect(Foo).not_to respond_to(:foos)
end
end

context 'with an invalid caching setting' do
Expand Down

0 comments on commit b4b3c38

Please sign in to comment.