Skip to content

Commit

Permalink
Merge pull request #23299 from jrafanie/drop-redundant-between-clause…
Browse files Browse the repository at this point in the history
…-test

Remove unnecessary test failing on rails 7.1.
  • Loading branch information
kbrock authored Jan 9, 2025
2 parents d4f76b2 + bae7f8d commit d7aed32
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/lib/miq_expression_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -757,14 +757,6 @@
sql, * = exp.to_sql
expect(sql).to eq("\"vms\".\"last_scan_on\" BETWEEN '2011-01-10 08:00:00' AND '2011-01-10 17:00:00'")
end

it "generates the SQL for a FROM expression with two identical datetimes" do
exp = MiqExpression.new(
"FROM" => {"field" => "Vm-last_scan_on", "value" => ["2011-01-10 00:00", "2011-01-10 00:00"]}
)
sql, * = exp.to_sql
expect(sql).to eq("\"vms\".\"last_scan_on\" BETWEEN '2011-01-10 00:00:00' AND '2011-01-10 00:00:00'")
end
end

context "relative date/time support" do
Expand Down

0 comments on commit d7aed32

Please sign in to comment.