Sha256: 37f32e5b94ffa0e9b72643a4f4175939c1dc7d378c768d9ee31380f9196288d8
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
require "spec_helper" describe DateInputRails do shared_examples "an <input type='date'>" do it "submits data in ISO format" do visit "/test" fill_in "date", :with => "10/28/2012" click_button "Submit" page.find("#date-param").should have_content("2012-10-28") end end context "on browsers supporting <input type='date'>", :driver => :chrome do it_behaves_like "an <input type='date'>" end context "on browsers not supporting <input type='date'>", :driver => :firefox do it_behaves_like "an <input type='date'>" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
date-input-rails-0.0.1 | spec/features/date_input_spec.rb |