chirrin-chirrion-admin 0.0.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 +7 -0
- data/LICENSE +340 -0
- data/README.rdoc +3 -0
- data/Rakefile +29 -0
- data/app/assets/javascripts/chirrin_chirrion_admin/application.js +15 -0
- data/app/assets/stylesheets/chirrin_chirrion_admin/application.css +15 -0
- data/app/controllers/chirrin_chirrion_admin/application_controller.rb +4 -0
- data/app/controllers/chirrin_chirrion_admin/toggles_controller.rb +36 -0
- data/app/helpers/chirrin_chirrion_admin/application_helper.rb +4 -0
- data/app/views/chirrin_chirrion_admin/toggles/index.html.erb +42 -0
- data/app/views/chirrin_chirrion_admin/toggles/new.html.erb +18 -0
- data/app/views/layouts/chirrin_chirrion_admin/application.html.erb +17 -0
- data/config/routes.rb +9 -0
- data/lib/chirrin_chirrion_admin.rb +12 -0
- data/lib/chirrin_chirrion_admin/engine.rb +15 -0
- data/lib/chirrin_chirrion_admin/version.rb +3 -0
- data/lib/tasks/chirrin_chirrion_admin_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +38 -0
- data/spec/dummy/config/environments/production.rb +76 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/chirrin_chirrion_admin.rb +6 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/log/development.log +7368 -0
- data/spec/dummy/log/test.log +1980 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0AOObJJL8HbnYNeV9BzUJcNOtkk94Ac1U8l_50fgda8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0OEwd4cYU8uL1-rWW4tnJGDqlrRPQ4omE0W857lXzHY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1_UsGnHNxpPzCSzLqdHI0MdW-XIvvr6TjEGshr4vftk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1p2auY8YceJ_bviYVcICaphWSCFkjPsC-oH9Y6-iAfg.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2DMk1laeypWxviHTwYWdfJ-U0t1pj0jxATpa_KnYjFE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2dZb4XGICb33hoLbFnl6VP1dFGOaXD0rY2G7nORxPqw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7iPjeVPk-p2Flcsimb35nymIEZs7WXBhgDgxgQRmpd4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/88Q018EVZlTz-FGw5NyP41tbUguhH2RPot_uVYMPqws.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/B6LqbdSOItIvM_F3CONwy5gWJqEBPLL8_FAnF8QdhLo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/BujEy7hxHhntyDlLGcvqGRoasPp3J-B4IlML83WQiSM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/CeoN2sTz-yu1BV4jCV6BuYxtUOceCqzcaXV3KKPdslo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ChzbpIkJfk17UeQNsTb5MZZpfHh31WLCjcBpaMm9x48.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/CuAn_wqg2PWaR3GRd9UrkGtlIBbnDuQ42CqogLfrs8c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FDBaxUW4zTA6bxK-wIEiktPCh625vnre8iIuSPJmzFs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FiHYRhQLRRtfvIgCNNTgFsyafW_PrpTl8cb6kO_5rXA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/G1sWQqTRszxau3XtSnE5H7MrdsdYkfW0hV6_KeS5a_0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Gpzq-na0Mr8cY_tVR33mF8l1po-L1qU0z4qzrZU0cRQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Hktq0RL-Hs8AjB1PIfmTwRBIVCVVswq7rSbmMOqq8Yc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/KVn_5fLXDANdVGUVPsDORmaW2_82MF6LmeDU-s2rZ34.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/KqGypn_0s-Dn-qK_8FG0l--HNPIA-H3qV_tHxf2ru6E.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/MFfVitGi7rRQ5qLj8_t03fLasZqLJ9xwxI7u1Ro-Nnk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/NJFqXR3By_HPuINsoWSc2J9d9OJNC3F7Mh1XZ7h5AiU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OELZGi9b59jKMfbXx_znswCkgjZ8UnxYO0zyOKt2uns.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/PHfnGfDZZQ3SWKzzxfOFdwvWLmf_zzSWnZY_BFdm1h0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QjlMfep5IGnYD0q8gYydXSoyoRdO2YyKpjWCY3ItLDs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/RbUR2i2yuPE6v4l7pKEgJHFHni2aw13nch_XOMxYa8g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WIIACXF2aRw5Le4cG-uk56WZiQaDgNIszDham3mUAyM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WruzIxLABcX_sM7bIuMxJnp6ovSRRzvlke6akqoGBag.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XkOXhM7pA45oUoooIBFxvv271yIi6FW3Fk-DTj0vymg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Y2JhsNafDCvYp-8eQeugMm8FMaLTcE9leTGJtGHupvI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Y6L7F0sVT20aIhgPRyM5lZ9m-r5gmklhaKvT3dmHfmk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Ysy_hJXRNjd6K_sz2GfGPybd9W3xN5LJ2194aDeUDO8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ZvZeiBcp1iXIND6OVVUlRj-TTB4VRgX-VHAtusLT93Y.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/_fa0jkzGeUgOIkBF1aB7AAWd9KOBjkNP_atofP8FR-g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/_tOqmUgwInBjmMr-CPu6UvC3WC3gmW5QccbvqAcbvZg.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/aeMqExt6u7USiqPbkMjwUd2obCeUy4DyocDmt602aMA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dN2Ey9z7EnzE60SaTzXtW6jiy3sA7nM_huF8S-_pAQQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dy305Y5RLRVnSg5tHqRQzDJFvINnUEgZPdI5_NS8fAs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/e3JNklEtHRNGLiWa6UOJAhe9uFTjQpCKIWYU9HSjQkw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gKegTYmNjSHmOfBBPi6Gqsry5pJwLyfZvONDFWMkHZs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gL3TQhUNMa820Y5uvrs9h7p19WR-BD-fjOo6eXl1DmY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/h41388idJUpvuYNmuBp8DLBWn0SjE6EU9O_lCawQHAo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hRed6m6uJIsScMh11kVZ_syMXQgXukRTeT3dWTnQOT0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/iCKb9_mF1qS2pjIZWAn53IveFGVdvCkFMdjLPyBIIXU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kJrsLUDSZ_EAvSZVO2pw4X_GHoVjzJrQcqHJWm-8XG4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/krRMt5IsiZEsXsXwvOTWlixtyrQvxnJ6hn4w-YQ7kO8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pbjC_xZNPMkvpnSbAUKtidzhCtu26hVLUD43YZrWJ0U.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qLXtGhZoJ2BA-2k-k9S0mf_k9Jn_LsALWNA0uXqPyjc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/r1oijfZSB5pcrD0rwxy03kjc5AQXbe37m4jD3MLfE1w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/r_-DoxazLib88DhIJfED9NeTQvARh_4eszDLtg5xWlA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/rr8oMgNB7EJa1fD8vfVxXJ7XoITMPfHI3oLCEqCIAWA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/sAsODBt3AJ1AZTuDdk48GPIG6NNbtOuc7QCfjOmugSY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/sOtaxwP5BczeFu9u8skRBzieBQeZNRjs45PWqdpnBeM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/sRPfqt6Jhyt96CO3Jqq2G1LrsgSZe8JNTM3u7RmaYko.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tj_VHi1ShKdDt3fWqHjC5OkUq5XyrIO_RUJAiYS2Rmo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tpgsuDoHD7BpKbk7hit6YEzMwhLvLz1Vlg618X7WdsY.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/utEY7XM5NjNzUxjVQXc_ebkpfzJShoXnk9hh16TKO6c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uyBgtTImSF-FTpW2M_kBaxp2lXx5iQ2Y8cdqd2T3BAY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/v3MXmTCY7p2ii5Vbt5TiD8hfiW2bviQELaLvtK9euzo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/v7XXU9ZZfolwr10eyEaRimWwtNV2zjCKftK7yu_SoX4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/vd1TRr-vQL-qNeomu4x3bOSbP-hKwtyDEErK6FmSR8I.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/w3e8F6Yna1RYHJ87a7bJvMXioTdY-LUzBHHblRFQDXM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wQ7Hxvq70lrLV9GDkZLFmoz8s9NICb1z6s0nDChYLJw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wXgZZMd-MXGKmaEWEZbQqouf1EFJ5t8MZ31cliilfpo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xcP6EWnvGBrVBA_UbDakDQJhm3GNnTmEeS63iWsHPaA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/4mm-Bv4R_VqFQj3_9M3aosNXOttTfKrwj1p_nIT3SCg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Anj6I48LgSiuC5eOZaSLStQpqCSLjpUOvTwgUychku0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/CeoN2sTz-yu1BV4jCV6BuYxtUOceCqzcaXV3KKPdslo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/CuAn_wqg2PWaR3GRd9UrkGtlIBbnDuQ42CqogLfrs8c.cache +2 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Gpzq-na0Mr8cY_tVR33mF8l1po-L1qU0z4qzrZU0cRQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Hktq0RL-Hs8AjB1PIfmTwRBIVCVVswq7rSbmMOqq8Yc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/MFfVitGi7rRQ5qLj8_t03fLasZqLJ9xwxI7u1Ro-Nnk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/OELZGi9b59jKMfbXx_znswCkgjZ8UnxYO0zyOKt2uns.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/UfvuhvRxYoP0WOxEwTrlMrJDPS9lDtjoqxq8hhv-lMU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/e3JNklEtHRNGLiWa6UOJAhe9uFTjQpCKIWYU9HSjQkw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/krRMt5IsiZEsXsXwvOTWlixtyrQvxnJ6hn4w-YQ7kO8.cache +3 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/pGwua5zdL7YucCh01Roy9lsESXQVcct4dHJd6fmFIe8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/r_mKKm2EC6BDtu52NEWzar-6wvs-FEeD1xA1KvJLmK4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/uAwkkS1OoAG2uQedNR0QQ8mZ3uGuVdo2-J5dLC_c3Hg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/wuIli-VRqsL7yhyxTTbMfeAqTl09W0ECg7siNevyIT8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/y2kVgmLqene2pu81PSF-2nvPMKY0a8XfWp74VGhlz80.cache +0 -0
- data/spec/features/toggles_spec.rb +111 -0
- data/spec/spec_helper.rb +133 -0
- metadata +430 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&pipeline=self&id=79c2e4cddec8e68cde9f5ca89855016f6de8c715298e0d3f335c1d1b53460217:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%���&@@��B���O��3���0�2��`]Hb�
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs.js;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&id=fb83d993f8258efcee43f03c2650658f4b229062137de1470994a5e50e33cf7d:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&pipeline=self&id=d301b892146b913cdfa729a7efdba2753e1050d779ad2a861b246f6ea3998a76:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�W\�yho9S���ƫ˥��)|�~���(���
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-2.3.0/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=621db77b551df7e10dae47022b8db40b148b80b9023d635aa0ac38a17b6fe744:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&pipeline=self&id=079a5b97b77df301fa253c3e27e826a5b24b7e4f89b210e24e97c26075718ba9:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&id=d570a5112032f139c5e4cfc754f6c64f0203c581f7cb341ce82df1f0505b6506:ET
|
Binary file
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"�file-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"vfile-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin;TT
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js;TTI"vfile-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�+�衿�M�)��v�yNt��_�Tmy$�ش
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&id=91f0847879f945df1dfb211960ba6d9167e454feab0b9cf70fdecad706b599e5:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%Ѱč@�����6H�uZoX�Z�gbh0W��V
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&id=2a7f317da0d1635d2cbe08b05aee4ba498d9c96fd634e04b77bd082c9a4f70c4:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&id=a8291892d02e89b447f3d87aff989d4ad3dad2d85a7b382888494771020f4c18:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=8051429ac122941ad372a4ea296df38bd3b046d3d968cc55cf3c2a42c64a457a:ET
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-2.3.0/vendor/assets/javascripts/jquery_ujs.js;TT
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�R���L���z[_^�a��q����s���5%�
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=2c27987b4fcd2871b695062b421cc6bdf343ac953fabfe73b934436325481b91:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�W\�yho9S���ƫ˥��)|�~���(���
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&pipeline=self&id=64544589f5dd6c1224b2f2aa71bfa1c2f5a88dec0b9d18cc40840ff803aec4c9:ET
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�RH���=kՎ�!1�d/_-�����6^�
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&pipeline=self&id=d76dffa7045b047724ea9689795ba1aa02aa509572c355c672662c07817d49a4:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery.js;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&id=adcb7872ee78de93c202978a41b94577bceb324cb21b083578615b2b840ea0b7:ET
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-2.3.0/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=f970d821ad51fb788040ce9696bd1caaf39c39ea7bf0b620e9cd5b6c1a1290bc:ET
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&pipeline=self&id=306dc385b9ebacb061b99da752d6532592bfbc65fe4935aa7d4c1721ed262836:ET
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/bvicenzo/.rvm/gems/ruby-2.2.2@chirrin-chirrion-admin/gems/jquery-rails-2.3.0/vendor/assets/javascripts/jquery.js;TT
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&pipeline=self&id=758a54544e3d2790175581f07e288f829cedcec8a589e397a4c887f4b9c4c6c3:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%X�p5����9~]~BK�����s��}^���%
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&id=fc6f0e480dd2f6d1f68dcc0049042579f50950eca801dc41716651af9497173e:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
@@ -0,0 +1 @@
|
|
1
|
+
"%����"m�J���S��E�j!�/�d�]�/[���
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&id=0c597322b7c208eb325a1ceaaedccd1314ecb2faeb3f32aa1a98e526c1fce8da:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css?type=text/css&pipeline=self&id=ea59c49a6647d07e046e4aa56086a8066dca38f484993504317431a80acc299a:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"�file-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"vfile-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin;TT
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"�file-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"vfile-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin;TT
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js;TTI"vfile-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%Ѱč@�����6H�uZoX�Z�gbh0W��V
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&id=609f1b0d5b8e93767139ef0bda0318067ba60f7973e2019eb44856a21767ca3b:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�W\�yho9S���ƫ˥��)|�~���(���
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"�file-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin/application.css;TTI"vfile-digest:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/stylesheets/chirrin_chirrion_admin;TT
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/bvicenzo/projetos/bruno/chirrin_chirrion_admin/app/assets/javascripts/chirrin_chirrion_admin/application.js?type=application/javascript&pipeline=self&id=5d9d16cf4362c90927dfcda6a18031f3aa763a8a54f95881449684b64e523553:ET
|
Binary file
|
@@ -0,0 +1,111 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Toggles', type: :feature do
|
4
|
+
after { ChirrinChirrion.list.each{ |toggle| ChirrinChirrion.remove_toggle(toggle.name) } }
|
5
|
+
|
6
|
+
describe 'List toggles' do
|
7
|
+
context 'when the list is empty' do
|
8
|
+
before { visit chirrin_chirrion_admin.toggles_path }
|
9
|
+
|
10
|
+
it 'shows the title and the header list' do
|
11
|
+
expect(page).to have_content('Active')
|
12
|
+
expect(page).to have_content('Description')
|
13
|
+
expect(page).to have_content('Actions')
|
14
|
+
expect(page).to have_content('New Toggle')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context 'when the list has toggles' do
|
19
|
+
before do
|
20
|
+
ChirrinChirrion.add_toggle('new_user_register_validation', { active: true, description: 'When this is active, gender, age and phone number are not required' })
|
21
|
+
ChirrinChirrion.add_toggle('new_payment_gateway', { active: false, description: 'Changes the gateway to ne new one' })
|
22
|
+
visit chirrin_chirrion_admin.toggles_path
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'shows the registered toggles list' do
|
26
|
+
expect(page).to have_content('Toggles')
|
27
|
+
expect(page).to have_content('new_user_register_validation')
|
28
|
+
expect(page).to have_content('When this is active, gender, age and phone number are not required')
|
29
|
+
expect(page).to have_content('true')
|
30
|
+
expect(page).to have_content('new_payment_gateway')
|
31
|
+
expect(page).to have_content('Changes the gateway to ne new one')
|
32
|
+
expect(page).to have_content('false')
|
33
|
+
expect(page).to have_content('New Toggle')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'Create toggles' do
|
39
|
+
before { visit chirrin_chirrion_admin.new_toggle_path }
|
40
|
+
|
41
|
+
it 'success to create an inactive toggle' do
|
42
|
+
expect(page).to have_content('Create Toggle')
|
43
|
+
fill_in 'Name', with: 'new_user_register_validation'
|
44
|
+
uncheck('Active')
|
45
|
+
fill_in 'Description', with: 'When this is active, gender, age and phone number are not required'
|
46
|
+
click_button('Create')
|
47
|
+
expect(page).to have_content('Toggle has been created with success')
|
48
|
+
expect(page).to have_content('new_user_register_validation')
|
49
|
+
expect(page).to have_content('When this is active, gender, age and phone number are not required')
|
50
|
+
expect(page).to have_content('false')
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'success to create an active toggle' do
|
54
|
+
expect(page).to have_content('Create Toggle')
|
55
|
+
fill_in 'Name', with: 'new_user_register_validation'
|
56
|
+
check('Active')
|
57
|
+
fill_in 'Description', with: 'When this is active, gender, age and phone number are not required'
|
58
|
+
click_button('Create')
|
59
|
+
expect(page).to have_content('Toggle has been created with success')
|
60
|
+
expect(page).to have_content('new_user_register_validation')
|
61
|
+
expect(page).to have_content('When this is active, gender, age and phone number are not required')
|
62
|
+
expect(page).to have_content('true')
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'Removes a toggle' do
|
67
|
+
before do
|
68
|
+
ChirrinChirrion.add_toggle('new_payment_gateway', { active: false, description: 'Changes the gateway to ne new one' })
|
69
|
+
visit chirrin_chirrion_admin.toggles_path
|
70
|
+
end
|
71
|
+
|
72
|
+
it 'removes the togle from base', js: true do
|
73
|
+
click_link('remove_new_payment_gateway')
|
74
|
+
page.evaluate_script('window.confirm = function() { return true; }')
|
75
|
+
expect(page).to have_content('Toggle has been removed with success')
|
76
|
+
expect(page).not_to have_content('new_payment_gateway')
|
77
|
+
expect(page).not_to have_content('Changes the gateway to ne new one')
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe 'Activating and Inactivating a toggle' do
|
82
|
+
before do
|
83
|
+
ChirrinChirrion.add_toggle('new_payment_gateway', { active: active, description: 'Changes the gateway to ne new one' })
|
84
|
+
visit chirrin_chirrion_admin.toggles_path
|
85
|
+
end
|
86
|
+
|
87
|
+
context 'when the toggle is active' do
|
88
|
+
let(:active) { true }
|
89
|
+
|
90
|
+
it 'makes the togle inactive', js: true do
|
91
|
+
expect(page).to have_content('Inactivate')
|
92
|
+
click_link('inactivate_new_payment_gateway')
|
93
|
+
page.evaluate_script('window.confirm = function() { return true; }')
|
94
|
+
expect(page).to have_content('Toggle has been inactivated with success')
|
95
|
+
expect(page).to have_content('false')
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
context 'when the toggle is inactive' do
|
100
|
+
let(:active) { false }
|
101
|
+
|
102
|
+
it 'makes the toggle active', js: true do
|
103
|
+
expect(page).to have_content('Activate')
|
104
|
+
click_link('activate_new_payment_gateway')
|
105
|
+
page.evaluate_script('window.confirm = function() { return true; }')
|
106
|
+
expect(page).to have_content('Toggle has been activated with success')
|
107
|
+
expect(page).to have_content('true')
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|