I want to make assertion of the results of Calabash queries for labels with given ids. But the 'assert' method seems to not exist in Calabash. I test an iOS application.
My code:
Then(/^arrival date has been changed to day after departure date$/) do
departure_date_day = query("label marked:'departure_date_day'", :text).first
arrival_date_day = query("label marked:'arrival_date_day'", :text ()).first
# assert arrival_date_day.to_i == departure_date_day.to_i + 1
end
How to do this?
Regards,
Michał