Skip to content

Commit

Permalink
Fix caggs references
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatas committed Sep 14, 2024
1 parent 9339761 commit 6616a9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/timescaledb/migration_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
end
end

describe ".create_continuous_aggregates" do
describe ".create_caggs" do
let(:con) { ActiveRecord::Base.connection }

before(:each) do
Expand Down Expand Up @@ -110,9 +110,9 @@
specify do
expect do
create_caggs
end.to change { model.continuous_aggregates.count }.from(0).to(1)
end.to change { model.caggs.count }.from(0).to(1)

expect(model.continuous_aggregates.first.jobs).to be_empty
expect(model.caggs.first.jobs).to be_empty
end

context 'when using refresh policies' do
Expand All @@ -130,9 +130,9 @@
specify do
expect do
create_caggs
end.to change { model.continuous_aggregates.count }.from(0).to(1)
end.to change { model.caggs.count }.from(0).to(1)

expect(model.continuous_aggregates.first.jobs).not_to be_empty
expect(model.caggs.first.jobs).not_to be_empty
end
end

Expand All @@ -152,7 +152,7 @@
specify do
expect do
create_caggs
end.to change { model.continuous_aggregates.count }.from(0).to(1)
end.to change { model.caggs.count }.from(0).to(1)
end

context 'when overriding WITH clause timescaledb.materialized_only' do
Expand Down

0 comments on commit 6616a9a

Please sign in to comment.