Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: readysettech/readyset-rails
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1f3d3b322557328e2fe42449bdaf0c753c9131e0
Choose a base ref
..
head repository: readysettech/readyset-rails
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8bebe10db93819e1d83f4b3f273a89659dbf4212
Choose a head ref
Showing with 7 additions and 3 deletions.
  1. +7 −3 spec/command_spec.rb
10 changes: 7 additions & 3 deletions spec/command_spec.rb
Original file line number Diff line number Diff line change
@@ -36,8 +36,10 @@
describe '.show_caches' do
context 'when a query_id is provided' do
it 'executes the correct SQL command' do
described_class.show_caches(1)
expect(connection_double).to have_received(:execute).with('SHOW CACHES where query_id = 1;')
described_class.show_caches(query_id: 1)
expect(connection_double).
to have_received(:execute).
with('SHOW CACHES where query_id = ?', 1)
end
end

@@ -52,7 +54,9 @@
describe '.drop_cache' do
it 'executes the correct SQL command' do
described_class.drop_cache(1)
expect(connection_double).to have_received(:execute).with('DROP CACHE 1')
expect(connection_double).
to have_received(:execute).
with('DROP CACHE ?', 1)
end
end
end