Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkamel committed Jan 18, 2024
1 parent 51353bc commit 8ce1742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/search_flip/criteria_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@

describe "#post_search" do
it "sets up the constraints correctly and is chainable" do
if Productindex.connection.distribution || ProductIndex.connection.version.to_i >= 2
if ProductIndex.connection.distribution || ProductIndex.connection.version.to_i >= 2
product1 = create(:product, title: "title1", category: "category1")
product2 = create(:product, title: "title2", category: "category2")
product3 = create(:product, title: "title3", category: "category1")
Expand Down
2 changes: 1 addition & 1 deletion spec/search_flip/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def self.include_type_name?
it "allows respects class options" do
products = create_list(:product, 2)

if Productindex.connection.distribution || ProductIndex.connection.version.to_i >= 5
if ProductIndex.connection.distribution || ProductIndex.connection.version.to_i >= 5
allow(ProductIndex).to receive(:index_options).and_return(routing: "r1")

expect { ProductIndex.create products }.to(change { ProductIndex.total_count }.by(2))
Expand Down

0 comments on commit 8ce1742

Please sign in to comment.