Created
December 15, 2011 10:28
-
-
Save lorenzk/1480639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input class="w-100 hasDatepicker" data-clear-button-text="Datum zurücksetzen" data-dateformat="dd.mm.yy" data-daynames="['So','Mo','Di','Mi','Do','Fr','Sa']" data-firstday="monday" data-monthnames="['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember']" id="booking_checkin_date" name="booking[checkin_date]" placeholder="mm/tt/jjjj" size="30" type="text"> | |
<input class="w-100 hasDatepicker" id="booking_checkout_date" name="booking[checkout_date]" placeholder="mm/tt/jjjj" size="30" type="text"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "wimdu.utils", -> | |
describe "datePickers", -> | |
beforeEach -> | |
loadFixtures("datepickers.html") | |
wimdu.utils.datePickers($("#booking_checkin_date"), $("#booking_checkout_date"), true); | |
it "sets the checkout_date after selecting a checkin_date", -> | |
$("#booking_checkin_date").datepicker("show") | |
$(".ui-datepicker-today").click() | |
expect($("#booking_checkout_date").val()).toBeGreaterThan(new Date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment