Skip to content

Commit

Permalink
Check with Keenan if this is a valid test - rails 7.1 drops the betwe…
Browse files Browse the repository at this point in the history
…en clause
  • Loading branch information
jrafanie committed Dec 12, 2024
1 parent fe9ba76 commit 8342b1c
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 8342b1c

Please sign in to comment.