Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing rails 3.0 and 3.1 dates feature #238

  • Loading branch information...
commit d4dea5001ebc0bb3f9e912ba3f6f27a3430d9230 1 parent 4d607c4
Mark Yoon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  features/step_definitions/surveyor_steps.rb
View
2  features/step_definitions/surveyor_steps.rb
@@ -76,7 +76,7 @@
Response.count.should == count.to_i
table.hashes.each do |hash|
if hash.keys == ["datetime_value"]
- dtv = hash["datetime_value"].size == 8 ? DateTime.parse("01-01-01 #{hash['datetime_value']}") : hash["datetime_value"]
+ dtv = DateTime.parse( hash["datetime_value"].size == 8 ? "01-01-01 #{hash['datetime_value']}" : hash["datetime_value"])
Response.all.one?{|x| x.datetime_value == dtv}.should be_true
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.