Sha256: c78d2165f1347e9002014fb6c557e2fd82f8983ccfbc15a0d478c1acb329cc68
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
require 'spec_helper' RSpec.describe "NoSqlModel", :type => :request, js: true do #The way I got this to work with Mongoid is to call the specific form helpers in the view instead of generic hd_picker() before do visit new_no_sql_model_path find("form").click end it "works with date picker" do find("#birthday").click page.should have_selector(".ui-datepicker-week-end") page.should_not have_selector(".ui-timepicker-div") end it "works with time picker" do find("#lunchtime").click page.should have_selector(".ui-timepicker-div") page.should_not have_selector(".ui-datepicker-week-end") end it "works with datetime picker" do find("#apocalypse").click page.should have_selector(".ui-datepicker-week-end") page.should have_selector(".ui-timepicker-div") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hot_date_rails-1.5.7 | spec/requests/no_sql_model_spec.rb |
hot_date_rails-1.5.6 | spec/requests/no_sql_model_spec.rb |
hot_date_rails-1.5.4 | spec/requests/no_sql_model_spec.rb |