spec/lib/applier_spec.rb in parelation-0.1.0 vs spec/lib/applier_spec.rb in parelation-0.2.0
- old
+ new
@@ -26,13 +26,13 @@
criteria = klass.new(project.tickets, params).apply
ar_query = project.tickets
.select(:id, :name, :state, :message)
.where(state: ["open", "pending"])
.where.not(state: "closed")
- .where(%Q{"tickets".'created_at' > ?}, "2014-01-01 00:00:00.000000")
- .where(%Q{"tickets".'updated_at' >= ?}, "2014-01-01 00:00:00.000000")
- .where(%Q{"tickets".'created_at' < ?}, "2014-01-01 01:00:00.000000")
- .where(%Q{"tickets".'updated_at' <= ?}, "2014-01-01 01:00:00.000000")
+ .where(%Q{"tickets".'created_at' > ?}, "2014-01-01 00:00:00")
+ .where(%Q{"tickets".'updated_at' >= ?}, "2014-01-01 00:00:00")
+ .where(%Q{"tickets".'created_at' < ?}, "2014-01-01 01:00:00")
+ .where(%Q{"tickets".'updated_at' <= ?}, "2014-01-01 01:00:00")
.where(
%Q{"tickets"."name" LIKE ? OR "tickets"."message" LIKE ?},
"%ruby on rails%", "%ruby on rails%"
)
.order(created_at: :desc, name: :asc)