controller_scaffolding 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/controller_scaffolding/version.rb +1 -1
- data/lib/generators/controller/controller_scaffolding_generator.rb +1 -1
- data/test/dummy/app/controllers/application_controller.rb +0 -6
- data/test/dummy/app/models/fellow.rb +4 -0
- data/test/dummy/config/environments/test.rb +1 -1
- data/test/dummy/config/locales/en.yml +4 -0
- data/test/dummy/config/routes.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140711034542_create_people.rb +1 -1
- data/test/dummy/db/migrate/20140811153902_create_fellows.rb +14 -0
- data/test/dummy/db/schema.rb +12 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +12280 -0
- data/test/dummy/log/test.log +63731 -0
- data/test/dummy/spec/requests/credit_card_infos_spec.rb +2 -2
- data/test/dummy/spec/requests/fellows_spec.rb +72 -0
- data/test/dummy/spec/requests/people_spec.rb +5 -6
- data/test/dummy/tmp/cache/assets/development/sprockets/01c13677b490251ef0c207577da82b05 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/032a2e7776b8a3fd5e23bb3869a2d915 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/04d4f78e5ff2e5c46cce7069d4e55be8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1631f5e21fbf9339d9b16fd9a5017026 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1c637568a1810db3bd0bb5b6acfe3bdf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1dc2824e4f69b5f787cc0b33a280e1f7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e9803a2c26b2829cf42555817210ac5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21b1aa9116a799dc2b355fae493840bd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2d40e2d5fb2aec59b44b22bb1ea7882c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2e8fbe25c4d3ab5d0233fc6e0b34f944 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/332c1d2ea8ad7657d222365f805bbb35 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3469553389bd14638bbc0e4c3e1f6824 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/356c15814e7457596689b7192cf4abc7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3dc7610c14a619785c2b9675c81d0fb9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4679e2e5980d29ccd87c78cd338401c3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/46fd8d2a4190eaa4a6909666e4a695a0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/492a2ec0c514d0db50ea8a653e90d38e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4c83ee771b5f5b0f10561ee99e505dd8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/53227fb913e29973de5c493c2a1d3daf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/555353914b4c44ce0019e5a5c1f0d1bf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/583b9c627704d8418bbe11bf1790948a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/59e024872cb5c7e5ca0da3b0c08a4434 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a0dbdf8ecf53083e196c38bc0a47ad7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/60b39a6213a37b4edb12dae7ea302650 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/65a7c5769d2c0e6feba215bbd678cfee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7729d91d64f1fa2e39773f3547fc6f9f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/79f6de26085819269d280f918893c350 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8138027492cff6ae7f251f5b98eba76c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/81731f2ea2ff840797a3b2a7670f092a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/821eca133eccf21f62c5af25abb5da67 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8586364cf68795cab81f91a9af8e3a28 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/86014cd77c4b6b21489213edbc4be69d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/87a082b8f6c5e5c75204f583da990e1b +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/93b9f0e646d6396491d4c0c470e75ed9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/991d9baf4c0665d4114d00882965f72c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9a2dd8e102eaacc015496ca12ecba23e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9ccc8778c283f2a1e1b8519368fd7ab7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a019c818b0a5b98b9d1908a8fbdf0f06 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0bc1ce6c8078650c72eb84ed08b266f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a1569a1ae679411bdf3c46cabf108df1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a4985da783a2b71d97d79362f828cf1f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a9682c243ae89240a541ac0df0079155 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aad1287e24b7b289ffcfe6e1628ad275 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ac9d7544ee8f2a805b7cbe7b20b706e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae3dd4c41b36eba3a3d83c4899361a40 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aed5000905ce0ccbd2fc9f81d45363b8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b3cc0c7760a874a2b126f2c9328f2768 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b508e499a0301ccc31bba14098e9863e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7cedebf2e7de6e3a0b3213bb053586c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b875a75655f842e0efb95c6ac06132aa +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c2350c58aa25cf3ab28894651d812712 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c651e96323a2d198a323f13e6bd80a44 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c8a33b4ef4b9da25aad245ed6b22b585 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc3347f70d96c6a2fa29f1a281266ab6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cee87b6d7b8da5b43acc187d60315d4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +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/d9a8dd8df47e3d5e854c03dec72d771f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d9ad301878886b21cb9b44509bb894ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dd3286d35fd64e2653a6197e1a119fe3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1096456df20861d666f73523b3a56d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e14c32a560402a4fe41452c1ec1efe29 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e2154b6db386950043999ea50ab9c319 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4af1f9def5926ccba0db5494cd11c71 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e72995145beb675820e77e309607495f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e75c0f818c32e81ecb714e7a2a7cde7d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e931989fcd032173e5536d8eb00c09cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ed0a14c29d11010613caf529978b7ee7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eed219ddd4fc2c16fced7293245a6618 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fce704a83c20a7376508e727036c20ad +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fdc27f9ce3865c2f49fedbdf3f0b061b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1631f5e21fbf9339d9b16fd9a5017026 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1c637568a1810db3bd0bb5b6acfe3bdf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1dc2824e4f69b5f787cc0b33a280e1f7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1e9803a2c26b2829cf42555817210ac5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/21b1aa9116a799dc2b355fae493840bd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2d40e2d5fb2aec59b44b22bb1ea7882c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/332c1d2ea8ad7657d222365f805bbb35 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3469553389bd14638bbc0e4c3e1f6824 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/356c15814e7457596689b7192cf4abc7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3dc7610c14a619785c2b9675c81d0fb9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4679e2e5980d29ccd87c78cd338401c3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/46fd8d2a4190eaa4a6909666e4a695a0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/492a2ec0c514d0db50ea8a653e90d38e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4c83ee771b5f5b0f10561ee99e505dd8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/555353914b4c44ce0019e5a5c1f0d1bf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/583b9c627704d8418bbe11bf1790948a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/59e024872cb5c7e5ca0da3b0c08a4434 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5a0dbdf8ecf53083e196c38bc0a47ad7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/60b39a6213a37b4edb12dae7ea302650 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/65a7c5769d2c0e6feba215bbd678cfee +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7729d91d64f1fa2e39773f3547fc6f9f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/79f6de26085819269d280f918893c350 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8138027492cff6ae7f251f5b98eba76c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/81731f2ea2ff840797a3b2a7670f092a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/821eca133eccf21f62c5af25abb5da67 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8586364cf68795cab81f91a9af8e3a28 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/87a082b8f6c5e5c75204f583da990e1b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8c0b04415ee487129c0d2bc8b098fb8c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/93b9f0e646d6396491d4c0c470e75ed9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/991d9baf4c0665d4114d00882965f72c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9a2dd8e102eaacc015496ca12ecba23e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9ccc8778c283f2a1e1b8519368fd7ab7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a019c818b0a5b98b9d1908a8fbdf0f06 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a0bc1ce6c8078650c72eb84ed08b266f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a1569a1ae679411bdf3c46cabf108df1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a9682c243ae89240a541ac0df0079155 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/aad1287e24b7b289ffcfe6e1628ad275 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ac9d7544ee8f2a805b7cbe7b20b706e4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ae3dd4c41b36eba3a3d83c4899361a40 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/aed5000905ce0ccbd2fc9f81d45363b8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b3cc0c7760a874a2b126f2c9328f2768 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b508e499a0301ccc31bba14098e9863e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b7cedebf2e7de6e3a0b3213bb053586c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b875a75655f842e0efb95c6ac06132aa +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c2350c58aa25cf3ab28894651d812712 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c651e96323a2d198a323f13e6bd80a44 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cc3347f70d96c6a2fa29f1a281266ab6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d9a48b188723fa8a03d0f673046b0fc7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d9a8dd8df47e3d5e854c03dec72d771f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d9ad301878886b21cb9b44509bb894ee +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e1096456df20861d666f73523b3a56d1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e14c32a560402a4fe41452c1ec1efe29 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e2154b6db386950043999ea50ab9c319 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e4af1f9def5926ccba0db5494cd11c71 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e72995145beb675820e77e309607495f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e75c0f818c32e81ecb714e7a2a7cde7d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e931989fcd032173e5536d8eb00c09cc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ed0a14c29d11010613caf529978b7ee7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/eed219ddd4fc2c16fced7293245a6618 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fce704a83c20a7376508e727036c20ad +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fdc27f9ce3865c2f49fedbdf3f0b061b +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +246 -20
- data/test/dummy/tmp/cache/assets/development/sass/4cc2210c6c3c0fe94891da849ffe7911fc420445/ext_form_submit.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/4cc2210c6c3c0fe94891da849ffe7911fc420445/ext_index_nav.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/12b145c6de8e8a781d4120a5f29229de +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1406702d7228a8c1a717fc485390c025 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/653fdbb8934cfc4411579c8628e7162d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aee47d2b394353b1f027d1265ce94bec +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d10aa50bf278b2fcf5727421f422083f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eb8ff0c9bd29ca1463e355de4819639b +0 -0
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe "CreditCardInfos" do
|
|
4
4
|
before(:all) do
|
|
5
|
-
cmd_str = 'rails g controller_scaffolding credit_card_infos index new create
|
|
5
|
+
cmd_str = 'rails g controller_scaffolding credit_card_infos index new create '
|
|
6
6
|
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
|
7
7
|
puts "\n#{cmd_str}"
|
|
8
8
|
%x(#{cmd_str})
|
|
@@ -12,7 +12,7 @@ describe "CreditCardInfos" do
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
after(:all) do
|
|
15
|
-
cmd_str = 'rails d controller_scaffolding credit_card_infos index new create
|
|
15
|
+
cmd_str = 'rails d controller_scaffolding credit_card_infos index new create '
|
|
16
16
|
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
|
17
17
|
puts "\n#{cmd_str}"
|
|
18
18
|
%x(#{cmd_str})
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
#The main reson for this spec is to make sure the --skip-search-sort generator option works as
|
|
4
|
+
# expected when running generator multiple times
|
|
5
|
+
RSpec.describe "Fellows", :type => :request do
|
|
6
|
+
|
|
7
|
+
describe "index" do
|
|
8
|
+
before(:each) do
|
|
9
|
+
visit fellows_path
|
|
10
|
+
end
|
|
11
|
+
describe "with search/sort functionality" do
|
|
12
|
+
|
|
13
|
+
before(:all) do
|
|
14
|
+
cmd_str = 'rails g controller_scaffolding fellows index '
|
|
15
|
+
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
|
16
|
+
puts "\n#{cmd_str}"
|
|
17
|
+
%x(#{cmd_str})
|
|
18
|
+
Rails.application.reload_routes!
|
|
19
|
+
end
|
|
20
|
+
after(:all) do
|
|
21
|
+
cmd_str = 'rails d controller_scaffolding fellows index '
|
|
22
|
+
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
|
23
|
+
puts "\n#{cmd_str}"
|
|
24
|
+
%x(#{cmd_str})
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
it "displays search form", :js => true do
|
|
28
|
+
page.should have_selector("input#search_for")
|
|
29
|
+
page.should have_selector("button#submit-search")
|
|
30
|
+
page.should have_selector("button#clear-search")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
it "displays sort form" do
|
|
34
|
+
page.should have_select('sort_by')
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it "has sort dropdown filled in with correct columns" do
|
|
38
|
+
sel_opts = ["First name","First name [desc]","Last name","Last name [desc]","Email",
|
|
39
|
+
"Email [desc]","Title",
|
|
40
|
+
"Title [desc]","Dob","Dob [desc]","Is manager","Is manager [desc]"]
|
|
41
|
+
page.should have_select('sort_by', :options => sel_opts)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe "without search/sort functionality", :js => true do
|
|
46
|
+
|
|
47
|
+
before(:all) do
|
|
48
|
+
cmd_str = 'rails g controller_scaffolding fellows index --skip-search-sort '
|
|
49
|
+
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
|
50
|
+
puts "\n#{cmd_str}"
|
|
51
|
+
%x(#{cmd_str})
|
|
52
|
+
Rails.application.reload_routes!
|
|
53
|
+
end
|
|
54
|
+
after(:all) do
|
|
55
|
+
cmd_str = 'rails d controller_scaffolding fellows index --skip-search-sort '
|
|
56
|
+
cmd_str << ' --template-engine=haml --quiet --force --skip-assets --skip-test-framework --skip-helper'
|
|
57
|
+
puts "\n#{cmd_str}"
|
|
58
|
+
%x(#{cmd_str})
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
it "does not have a search form" do
|
|
62
|
+
page.should_not have_selector("input#search_for")
|
|
63
|
+
page.should_not have_selector("button#submit-search")
|
|
64
|
+
page.should_not have_selector("button#clear-search")
|
|
65
|
+
end
|
|
66
|
+
it "does not have a sort form" do
|
|
67
|
+
page.should_not have_select('sort_by')
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
@@ -140,15 +140,16 @@ describe "People" do
|
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
#This one fails intermittently when all specs run together as "rspec spec"
|
|
143
|
-
it "displays a sort select list populated with all of the correct options", :js =>
|
|
144
|
-
pending "test fails intermittently depending on the context it is run in"
|
|
143
|
+
it "displays a sort select list populated with all of the correct options", :js => true do
|
|
144
|
+
#pending "test fails intermittently depending on the context it is run in"
|
|
145
145
|
visit people_path
|
|
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
|
-
|
|
149
|
+
#binding.pry
|
|
150
150
|
page.should have_select('sort_by', :options => sel_opts)
|
|
151
151
|
end
|
|
152
|
+
|
|
152
153
|
it "clears the search", :js => true do
|
|
153
154
|
visit people_path
|
|
154
155
|
fill_in("search_for", :with => "Search Text")
|
|
@@ -166,11 +167,9 @@ describe "People" do
|
|
|
166
167
|
|
|
167
168
|
#This one fails intermittently when all specs run together as "rspec spec"
|
|
168
169
|
it "sorts by last name descending when selected", :js => true do
|
|
169
|
-
pending "test fails intermittently depending on the context it is run in"
|
|
170
|
+
#pending "test fails intermittently depending on the context it is run in"
|
|
170
171
|
visit people_path
|
|
171
|
-
sleep 1
|
|
172
172
|
select("Last name [desc]", :from => "sort_by")
|
|
173
|
-
sleep 0.5
|
|
174
173
|
last_names = all(:xpath, "//table/tbody/tr[@class='item']/td[2]")
|
|
175
174
|
last_names.map(&:text).should == last_names.map(&:text).sort.reverse
|
|
176
175
|
end
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
19580
|