controller_scaffolding 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/lib/controller_scaffolding.rb +1 -0
- data/lib/controller_scaffolding/version.rb +1 -1
- data/lib/generators/controller/controller_scaffolding_generator.rb +2 -2
- data/lib/generators/haml/controller/controller_scaffolding_generator.rb +37 -12
- data/lib/templates/haml/controller/_form.html.haml +5 -0
- data/test/dummy/app/models/schedule.rb +2 -0
- data/test/dummy/app/models/unsearchable.rb +2 -0
- data/test/dummy/config/locales/en.yml +8 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20141013173403_create_unsearchables.rb +10 -0
- data/test/dummy/db/schema.rb +18 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +266 -0
- data/test/dummy/log/test.log +49954 -0
- data/test/dummy/spec/requests/datepicker_spec.rb +93 -0
- data/test/dummy/spec/requests/people_spec.rb +2 -3
- data/test/dummy/tmp/cache/assets/development/sprockets/00d7a043c9882a17a07b510906102001 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/025c11a67b36bd30f651d16a98770a0e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/03fbafbc59d06318c1bdf9bd0bd0be42 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0909ebfb7797f27b884744b7b01e9d23 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/09d47de9952b122a7bc234d427dd8416 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d0b7b8974da0b4cb0a257c744a885c9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0e428be3345c68c21fa16efd1df40a18 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f4faea5e458e5336a34d5bdf730f92b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/10484f9ab8bf3cd1b30a63a55b15e6b2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a3c6a30280d9edd208e090bd63e93f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a8f20ce64fdfd60ba1664aeb4ddb4b6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1dc2824e4f69b5f787cc0b33a280e1f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e8215f994051001a53fb42a172471f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2e8fbe25c4d3ab5d0233fc6e0b34f944 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2ec229db49fb53a9c0b9d2bdafe26708 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/302cd42bc3aefb54ae8daa5903bb0f85 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3b55b2f606d39fcea38795fe22cb1794 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3bf4228d47944efe962d4a095debc826 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3e343bb2d38b4857d5b4833b49a1e53b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4179c631f26234eef3666b9ab8e33b50 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/41ff3aa0f7f4df2c318f1b431119cfda +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/425042170630b86b32ce66d969f8bb11 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4b3ab02bbe0c24724a88f9fe2645aecd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4df29d52dd5decae9155fc42aa25673a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e494dd03a8f6da76e5b75b4fd4a0450 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5889062dc9b0cf6f2d8cf419b85a12c6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e72fbc4e8fdea7dafb782aed341db89 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/623872c195c5a722209120a9d715b9ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/648c2e4578a1b3733059887e5541a92a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69a540a9299d8fddcfec9738415e99a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a3e7bf6ad751366088daebdc6d16e99 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6b137bb6a6b172141b5e6ec921595037 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c9f9111f4720199154c9dcf4423aa62 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6de6ba61e01e7c63db9d1beab694f3f9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6f68523d4752423dac2ad870dd947804 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6fc862535cdfd5840d530e396c32c4e8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/71123653cb35ff1e9af67e468d486fca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7885b079c6324c6726f25fc54bf5fba5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/794057314c85426cbefcd2d3f6dd714c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b3b5b9639a0645b8006aae3f7739bba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8005f718a98e853a588d68f94210cbb4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c0b04415ee487129c0d2bc8b098fb8c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8e608c74df0c65a289387e25a3881ef6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/909ee8c2f213895a2bcdb3fd0410ec21 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/951aab6570b6ec758fe39cd50af2ccff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/951e49f97121a9d4b84d310643cedbb0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/976f01268d11ebdabaad471bb54bf9cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/97cd9891aebe543e0d25252357d04b08 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/991d9baf4c0665d4114d00882965f72c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dfd4b1a01f3051eab1f5917c3b7e140 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a1043f9e3ea288a30035e94cf9a67ae2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a261ba7edd58d2286bf4f542f22b0959 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a43437e9ef5f99a653ec0315955404c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a60a385cdc9d722482200e35192bb252 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a89670e758589b116b4e8ae21b1d9a46 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/afbb38de8b31c6e1f62cb960058528bd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b2daea6e64e32ec6991cd9fe04327225 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b891a3270c6fd4e6ab86bc044d7d1f6f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b90d47dd376cc93910ce502d6a2bf74f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bcfd3524949b4a0cb88f13cf3b474ebe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/be66b830f93ab21d749294d1cc37b7be +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ccc4652abdcade4e256e02e457bb1117 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ccd96591ad1431c8d01f6eeeee697951 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ce412b6008418ae47eacde6edd282246 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d19c7eeadbbaf646b7716d7e8cf3ee05 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d4d563f10a0a4b988b11714fe7df26e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d5ac3be543ec337cfafb30ec3ace74c1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9a48b188723fa8a03d0f673046b0fc7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9ad301878886b21cb9b44509bb894ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dbfc6268ec177851b2c88edf152f9806 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dd3286d35fd64e2653a6197e1a119fe3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dfe48c293819b2286e098915fc8fad5a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1096456df20861d666f73523b3a56d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1d76fcc2e89ab0b04ed04ec634f6d05 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e6f578ccc5ce42c3c2ac1b9e5f852e95 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ebcfbd5fe142a24161764b05e3f607cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f07bde17dc4edc3c19e9bbe8214f704c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5e13fd75422c05eae4ba55bbb2e3234 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5e9a47f7b5b0c8b015b00f78ac9c128 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f9f71c86744316fff0d53df707e7b717 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fea130b674bca41b352f8e716a7651c9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/00d7a043c9882a17a07b510906102001 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/025c11a67b36bd30f651d16a98770a0e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/03fbafbc59d06318c1bdf9bd0bd0be42 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/09d47de9952b122a7bc234d427dd8416 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0d0b7b8974da0b4cb0a257c744a885c9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0e428be3345c68c21fa16efd1df40a18 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0f4faea5e458e5336a34d5bdf730f92b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1a8f20ce64fdfd60ba1664aeb4ddb4b6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1e8215f994051001a53fb42a172471f6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2ec229db49fb53a9c0b9d2bdafe26708 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/302cd42bc3aefb54ae8daa5903bb0f85 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3b55b2f606d39fcea38795fe22cb1794 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3e343bb2d38b4857d5b4833b49a1e53b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4179c631f26234eef3666b9ab8e33b50 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/41ff3aa0f7f4df2c318f1b431119cfda +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/425042170630b86b32ce66d969f8bb11 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4b3ab02bbe0c24724a88f9fe2645aecd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4df29d52dd5decae9155fc42aa25673a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4e494dd03a8f6da76e5b75b4fd4a0450 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5889062dc9b0cf6f2d8cf419b85a12c6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5e72fbc4e8fdea7dafb782aed341db89 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/623872c195c5a722209120a9d715b9ed +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/69a540a9299d8fddcfec9738415e99a7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6b137bb6a6b172141b5e6ec921595037 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6c9f9111f4720199154c9dcf4423aa62 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6de6ba61e01e7c63db9d1beab694f3f9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6f68523d4752423dac2ad870dd947804 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6fc862535cdfd5840d530e396c32c4e8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/71123653cb35ff1e9af67e468d486fca +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7885b079c6324c6726f25fc54bf5fba5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/794057314c85426cbefcd2d3f6dd714c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8005f718a98e853a588d68f94210cbb4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/951aab6570b6ec758fe39cd50af2ccff +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/951e49f97121a9d4b84d310643cedbb0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/976f01268d11ebdabaad471bb54bf9cd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/97cd9891aebe543e0d25252357d04b08 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a1043f9e3ea288a30035e94cf9a67ae2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a261ba7edd58d2286bf4f542f22b0959 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a43437e9ef5f99a653ec0315955404c5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a89670e758589b116b4e8ae21b1d9a46 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/afbb38de8b31c6e1f62cb960058528bd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b891a3270c6fd4e6ab86bc044d7d1f6f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b90d47dd376cc93910ce502d6a2bf74f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bcfd3524949b4a0cb88f13cf3b474ebe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/be66b830f93ab21d749294d1cc37b7be +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ccd96591ad1431c8d01f6eeeee697951 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ce412b6008418ae47eacde6edd282246 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d19c7eeadbbaf646b7716d7e8cf3ee05 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d4d563f10a0a4b988b11714fe7df26e4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d5ac3be543ec337cfafb30ec3ace74c1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/dbfc6268ec177851b2c88edf152f9806 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/dfe48c293819b2286e098915fc8fad5a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e1d76fcc2e89ab0b04ed04ec634f6d05 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e6f578ccc5ce42c3c2ac1b9e5f852e95 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ebcfbd5fe142a24161764b05e3f607cd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f07bde17dc4edc3c19e9bbe8214f704c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f5e13fd75422c05eae4ba55bbb2e3234 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fea130b674bca41b352f8e716a7651c9 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/lib/generators/all_actions_generator_test.rb +1 -0
- data/test/lib/generators/dummy_test_files/app/assets/stylesheets/application.css +5 -0
- data/test/lib/generators/some_actions_generator_test.rb +1 -0
- data/test/lib/tmp/app/assets/stylesheets/application.css +5 -0
- data/test/lib/tmp/app/models/dinosaur.rb +0 -4
- data/test/lib/tmp/config/locales/en.yml +4 -0
- metadata +290 -4
- data/test/dummy/test/models/credit_card_info_test.rb +0 -7
@@ -0,0 +1,93 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Datepicker", :js => true do
|
4
|
+
# @g_cmd_str =
|
5
|
+
# 'rails g controller_scaffolding schedule index new create edit update destroy' \
|
6
|
+
# ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper --skip-datepicker'
|
7
|
+
# before(:each) do
|
8
|
+
|
9
|
+
# end
|
10
|
+
|
11
|
+
describe "when generator is invoked with --skip-datepicker option" do
|
12
|
+
before(:all) do
|
13
|
+
%x(#{gen_cmd("generate", "--skip-datepicker")})
|
14
|
+
Rails.application.reload_routes!
|
15
|
+
end
|
16
|
+
|
17
|
+
after(:all) do
|
18
|
+
%x(#{gen_cmd("destroy", "--skip-datepicker")})
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "No jQuery datepicker objects are attached to any inputs" do
|
22
|
+
before(:each) do
|
23
|
+
visit(new_schedule_path)
|
24
|
+
end
|
25
|
+
describe "rails date input" do
|
26
|
+
it "is attached to birthday field" do
|
27
|
+
page.should have_selector("select#schedule_birthday_1i")
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
describe "rails time input" do
|
32
|
+
it "is attached to breakfast field" do
|
33
|
+
page.should have_selector("select#schedule_breakfast_4i")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
describe "rails datetime input" do
|
37
|
+
it "is attached to appointment field" do
|
38
|
+
page.should have_selector("select#schedule_appointment_1i")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "when generator is invoked with no --skip-datepicker option specified" do
|
46
|
+
before(:all) do
|
47
|
+
%x(#{gen_cmd("generate")})
|
48
|
+
Rails.application.reload_routes!
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
after(:all) do
|
53
|
+
%x(#{gen_cmd("destroy")})
|
54
|
+
end
|
55
|
+
|
56
|
+
describe "It has jQuery picker objects attached to any date, time and datetime inputs" do
|
57
|
+
before(:each) do
|
58
|
+
visit(new_schedule_path)
|
59
|
+
end
|
60
|
+
describe "datepicker" do
|
61
|
+
it "is diplayed when birthday field receives the focus" do
|
62
|
+
find("input#birthday").click
|
63
|
+
page.should have_selector("div#ui-datepicker-div")
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
describe "timepicker" do
|
68
|
+
it "is diplayed when breakfast field receives the focus" do
|
69
|
+
find("input#breakfast").click
|
70
|
+
page.should have_selector("div#ui-datepicker-div")
|
71
|
+
end
|
72
|
+
end
|
73
|
+
describe "datetimepicker" do
|
74
|
+
it "is diplayed when appointment field receives the focus" do
|
75
|
+
find("input#appointment").click
|
76
|
+
page.should have_selector("div#ui-datepicker-div")
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
private
|
85
|
+
def gen_cmd(invoke="generate", append_to_cmd_str="")
|
86
|
+
cmd_str = "rails #{invoke} controller_scaffolding schedules index new create edit update destroy"
|
87
|
+
cmd_str << " --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper #{append_to_cmd_str}"
|
88
|
+
puts "\n#{cmd_str}"
|
89
|
+
cmd_str
|
90
|
+
end
|
91
|
+
|
92
|
+
|
93
|
+
end
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe "People" do
|
4
4
|
before(:all) do
|
5
5
|
cmd_str = 'rails g controller_scaffolding people index new create edit update destroy'
|
6
|
-
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
6
|
+
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper --skip-datepicker'
|
7
7
|
puts "\n#{cmd_str}"
|
8
8
|
%x(#{cmd_str})
|
9
9
|
# puts "\n\nRELOADING ROUTES FILE:\n\n"
|
@@ -14,7 +14,7 @@ describe "People" do
|
|
14
14
|
|
15
15
|
after(:all) do
|
16
16
|
cmd_str = 'rails d controller_scaffolding people index new create edit update destroy'
|
17
|
-
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
17
|
+
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper --skip-datepicker'
|
18
18
|
puts "\n#{cmd_str}"
|
19
19
|
%x(#{cmd_str})
|
20
20
|
end
|
@@ -146,7 +146,6 @@ describe "People" do
|
|
146
146
|
sel_opts = ["First name","First name [desc]","Last name","Last name [desc]","Email",
|
147
147
|
"Email [desc]","Title",
|
148
148
|
"Title [desc]","Dob","Dob [desc]","Is manager","Is manager [desc]"]
|
149
|
-
#binding.pry
|
150
149
|
page.should have_select('sort_by', :options => sel_opts)
|
151
150
|
end
|
152
151
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
60948
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'generators/controller/controller_scaffolding_generator'
|
2
|
+
require 'test_helper'
|
2
3
|
|
3
4
|
#The main function of this test is to verify the expected behavior of the generator when the
|
4
5
|
# index edit update and custom_action actions are passed to it. The correct actions and views should be generated
|