1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
Commit Graph

475 Commits

Author SHA1 Message Date
Sylvain
39fe153267 fix table name in rollback migration 2021-06-07 09:56:03 +02:00
Sylvain
209bde9f28 refreshed all footprints in fixtures, all tests passing 2021-05-31 17:14:42 +02:00
Sylvain
d0011a10f0 check for slots restricted to subscribers at cart level 2021-05-31 15:39:56 +02:00
Sylvain
55b0e25ee9 generate footprints in a reproductible way 2021-05-31 12:53:28 +02:00
Sylvain
36e173fb43 test presence of footprint debug data 2021-05-31 12:19:28 +02:00
Sylvain
db58ee28c0 migration to object[]
TODO: fix invoices checksums
2021-05-31 11:52:53 +02:00
Sylvain
d942d46632 WIP: migration to object[]
TODO: fix running tests, fix front-end
2021-05-28 17:34:20 +02:00
Sylvain
6cd74ac33e remove references to PaymentSchedule.scheduled 2021-05-27 16:11:23 +02:00
Sylvain
5f5ec8dbb6 remove references to Invoice.invoiced 2021-05-27 15:58:55 +02:00
Sylvain
13f50c0e33 remove references to WalletService.transactable 2021-05-27 13:43:54 +02:00
Sylvain
16df7f9506 fix data migrations + update test fixtures 2021-05-27 11:31:07 +02:00
Sylvain
c7a59c8cb7 WIP: refactoring to singularize the booking process
We need to achieve only one process for all booking, not one for subscription, one for reservations, etc.
Moreover we must store one object per invoice_item/payment_schedule_object and stop using Invoice.invoiced or PaymentSchedule.scheduled
2021-05-21 18:25:18 +02:00
Sylvain
66f81a975e WIP: array of items
Migration from cart_items:{reservation:{}, subscription:{}, ...}
to cart_items:{items:[{reservation:{}, ...}], ...}
2021-05-19 18:12:52 +02:00
Sylvain
4c605a8324 fix footprints in fixtures 2021-04-27 12:43:43 +02:00
Sylvain
da372cf8ad fix test Events::AsUserTest
the event price calculalation was using a variable not reinitialized
2021-04-26 16:38:00 +02:00
Sylvain
6b8f7da98c migrate js clients to new architecture 2021-04-26 11:41:02 +02:00
Sylvain
b9e8c8867c fix running test renew_as_admin_test 2021-04-26 11:40:26 +02:00
Sylvain
bc6ef8ef50 WIP: move backend code base to new architecture
- from stripe only to payment gateway abstract
- from reservation params style to unified cart_items

TODO: fix not passing tests,
subscriptions/renew_as_admin_test.rb fails because InvoiceItem(9).amount = nil
2021-04-23 17:54:59 +02:00
Sylvain
26dfbef5e1 WIP: refactor models to use payment_gateway_objects 2021-04-21 17:38:06 +02:00
Sylvain
434ec9c205 refactored Invoices to get rid of stripe references 2021-04-20 17:22:53 +02:00
Sylvain
343b2f7d23 refactor code related to archiving 2021-04-16 10:34:02 +02:00
Sylvain
2b091acb75 fix the test fixtures 2021-04-16 09:06:29 +02:00
Sylvain
1bbb8c3965 move the architecture from stripe-only to gateway-generic 2021-04-15 17:01:52 +02:00
Sylvain
fd5c3a87ce rename /api/payment to /api/stripe
other payment gateways will have their own separate endpoints
2021-04-12 10:45:41 +02:00
Sylvain
1749dea0e2 fix tests 2021-03-23 12:32:59 +01:00
Sylvain
39a7e23881 Improved style of public plans page 2021-03-22 13:13:51 +01:00
Sylvain
8b13ae45ac all tests passing 2021-01-04 16:26:52 +01:00
Sylvain
728ae4310c improved testing of payment schedules + some fixes
TODO: fix the test
rails test test/integration/reservations/create_test.rb
Reservations::CreateTest#test_user_reserves_a_machine_and_renew_a_subscription_with_payment_schedule_and_coupon_and_wallet [test/integration/reservations/create_test.rb:841]
Minitest::Assertion: Expected: "stripe"
  Actual: nil
2020-12-30 18:43:33 +01:00
Sylvain
8a808dbb2f improve testing reservation w/ payment schedule 2020-12-29 11:33:38 +01:00
Sylvain
40c78974b8 refactoring of reservation:pay_and_save
TODO: debug with tests,
refactor subscription:pay_and_save on the same template
2020-12-16 18:33:43 +01:00
Sylvain
6c8d65fba1 test reservation with schedule by admin 2020-12-15 17:14:58 +01:00
Sylvain
a5e48fa379 test subscription with schedule by admin 2020-12-15 17:01:54 +01:00
Sylvain
e3a81f6dbe test reservation with schedule by user 2020-12-15 16:53:11 +01:00
Sylvain
ccff463165 test subscription with schedule by user 2020-12-15 15:48:13 +01:00
Sylvain
908ccf5bab handle reservations+subscription w/ schedule
integration testing for payment schedule
debug reservation process
2020-12-14 17:42:23 +01:00
Sylvain
678af0de1f using stripe api + improved ui + ui to configure schedules reference
TODO: as an admin, I can select if payment_method = (stripe || local)
2020-11-16 16:37:40 +01:00
Sylvain
7d37174b51 [bug] when a cash coupon was used, an invalid amount is shown in the statistics 2020-11-04 15:53:40 +01:00
Sylvain
4bd26dc558 test members export 2020-07-22 13:01:52 +02:00
Sylvain
33c3eb06e7 test subscriptions export 2020-07-22 12:34:11 +02:00
Sylvain
807481db98 test reservations export 2020-07-22 12:23:01 +02:00
Sylvain
15b9c7b4b9 test export availabilites 2020-07-22 11:16:43 +02:00
Sylvain
19fb816d36 Enhanced rake task to create fixtures for test cases 2020-07-22 09:45:20 +02:00
Sylvain
7bf06ff23e debug footprints 2020-07-21 19:25:21 +02:00
Sylvain
0cd3f4a8b9 [bug] enabling auth_provider from the tests happens twice in coverall context 2020-07-01 18:12:14 +02:00
Sylvain
b0c6ab7ab4 test create and active new auth provider 2020-06-30 14:25:51 +02:00
Sylvain
a802b6c30c test public availabilities 2020-06-24 16:07:15 +02:00
Sylvain
8137418904 improved test for accounting periods 2020-06-24 15:25:17 +02:00
Sylvain
40dd39304e enable/disable statistics module fomr the UI 2020-06-17 12:20:51 +02:00
Sylvain
a23c06af59 fix fixtures 2020-06-15 15:06:34 +02:00
Sylvain
42872ab107 configure wallet from UI 2020-06-15 12:44:43 +02:00
Sylvain
f46c78a476 read email_confirmation_required from the UI 2020-06-15 11:57:13 +02:00
Sylvain
48bcf0b838 configure invoices prefix from the DB 2020-06-15 10:58:15 +02:00
Sylvain
78518e17fb read stripe_currency from the UI
We prevent the currency from being changed if any stripe payment was made, because a stripe user cannot made pay with different currencies. If we try to charge a user with a different currency than the currency he used for a previous payment, this will fail; so we must prevent this case
2020-06-10 16:37:11 +02:00
Sylvain
4b8504f531 fix tests 2020-06-10 11:52:54 +02:00
Sylvain
8ede604eb7 update stripe keys for tests 2020-06-10 11:42:10 +02:00
Sylvain
82d6677cff read stripe_api_key from db 2020-06-10 11:33:03 +02:00
Sylvain
06b5da9df8 configure online payment from the UI 2020-06-08 17:42:59 +02:00
Sylvain
45013be950 configure default_host & default_protocol from env
reverts 478a6c40 (partially) & b2434864
2020-06-02 18:29:24 +02:00
Sylvain
b243486444 set default values 2020-06-01 17:36:22 +02:00
Sylvain
0617e4cd26 configure default_mail_from from the UI 2020-06-01 12:15:16 +02:00
Sylvain
6cc6bba7ce refactored app to gather spaces module status from the settings 2020-05-26 13:59:40 +02:00
Sylvain
acefc325f6 configure events_in_calendar form the UI panel 2020-05-25 17:36:53 +02:00
Sylvain
f80eb230ca refactored code to use Setting.get 2020-05-25 12:54:19 +02:00
Sylvain
9f8fb1a95c fix tests + fix price.compute flor slots 2020-05-11 13:52:27 +02:00
Sylvain
3a762cb78d update cassettes 2020-05-11 10:56:37 +02:00
Sylvain
5c7cac6bac tests for availability creation 2020-04-20 09:42:07 +02:00
Sylvain
f24d94b979 set correct invoicing_profile_id for refund invoice during wallet credit 2020-04-01 17:58:32 +02:00
Sylvain
f9837747f6 fix running tests 2020-03-30 10:59:11 +02:00
Sylvain
68cb4fc5cf updated twitter feed 2020-03-25 15:05:50 +01:00
Sylvain
e046f9823f fix fixtures 2020-03-25 15:04:29 +01:00
Sylvain
553759bc90 fix fixtures 2020-03-25 12:35:09 +01:00
Sylvain
5ed1880ada fix stylesheets fixtures 2020-03-25 12:35:09 +01:00
Du Peng
b3313d3e75 update rails to 5.1.7 2020-03-25 12:35:07 +01:00
Du Peng
9ca9425ef4 update to rails 5.0.7.2 2020-03-25 12:35:07 +01:00
Sylvain
5da4a90692 [bug] invalid footprints in invoices fixtures 2020-03-25 12:34:33 +01:00
Sylvain
02b16907aa fix test to match new specs 2020-03-03 18:01:43 +01:00
Sylvain
cfd84286ab updated cassettes + confirmed users accounts 2020-03-03 15:57:36 +01:00
Sylvain
279012e595 [bug] default invoice logo is broken and prevent invoice generation + updated seeds 2020-03-03 14:38:09 +01:00
Sylvain
bb48a13f83 health endpoint & automated version check 2020-01-14 14:33:00 +01:00
Sylvain
510c802ab1 messages variations depending on slot duration 2019-12-09 10:27:50 +01:00
Sylvain
60755a2c2a Merge remote-tracking branch 'origin/fix-time-now' into dev 2019-12-03 15:51:22 +01:00
Sylvain
cca6b14f58 import events asyncronously from icalendar 2019-12-02 15:53:24 +01:00
Nicolas Florentin
db41e846dd uses DateTime#current instead of Time.now in tests 2019-12-02 15:29:05 +01:00
Sylvain
baf8cfb487 iCalendar server api & db model 2019-11-27 17:05:19 +01:00
Sylvain
a12be41412 fix accounting export test according to new specs 2019-10-21 14:23:38 +02:00
Sylvain
927479733b migrated links to /users/auth from GET to POST
see https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284 for more info
2019-10-02 14:37:47 +02:00
Sylvain
a7a929ddbc integration unit test for imports + fixed import result colors in UI + fixed test fixtures 2019-10-01 14:32:30 +02:00
Sylvain
4deaf1f75a [ongoing] import members from csv 2019-09-25 16:37:42 +02:00
Sylvain
a532efd198 upload csv file to the server through the API and save it on the disk 2019-09-24 17:42:50 +02:00
Sylvain
ede53ad761 [feature] Ability to set project's CAO attachement maximum upload size 2019-09-24 16:40:38 +02:00
Sylvain
7f88e8f59f automated tests for accounting export 2019-09-20 17:40:27 +02:00
Sylvain
1fa36d4029 renamed avoir_mode to payment_method 2019-09-17 14:48:06 +02:00
Sylvain
d977838d52 fix tests according to changes for stripe SCA 2019-09-11 16:20:47 +02:00
Sylvain
78e6392f60 do not display invoice update logs in test mode + updated reservations fixtures w/o stp_invoice_id column + helper script to run tests 2019-09-11 14:29:35 +02:00
Sylvain
4d0ac9b3ca using stp_payment_intent_id instead of stp_invoice_id on new invoices 2019-09-10 16:45:45 +02:00
Sylvain
92d79bc9c7 [bug] (#140) VAT rate is erronous in invoices 2019-08-14 10:54:23 +02:00
Sylvain
35c31b96ea fix vat history usage in invoice test + fix sidekiq delay extension 2019-08-01 11:50:03 +02:00
Sylvain
b0a9d91ed8 updated VCR cassettes 2019-07-10 11:33:46 +02:00
Sylvain
708c966d61 default policy udpate 2019-06-13 13:47:21 +02:00
Sylvain
12cf9cfd7d privacy policy draft 2019-06-12 14:37:05 +02:00
Sylvain
a53c6e80e7 move invoice->operator to invoicing_profile + minor fixes to handle user deletion 2019-06-12 12:22:38 +02:00
Sylvain
37b9e3da60 link statistic profile to invoices 2019-06-11 10:02:48 +02:00
Sylvain
cfd33c3a52 migrate projects to statistic_profile 2019-06-06 16:34:53 +02:00
Sylvain
fe2a6f7120 migrate trainings to statistic_profile and adjust code 2019-06-06 12:00:21 +02:00
Sylvain
f0c5b0eb09 init StatisticProfileTraining 2019-06-05 16:17:56 +02:00
Sylvain
4c033614ae [ongoing] migrate subscriptions & reservations to statistic_profile 2019-06-04 16:50:23 +02:00
Sylvain
52992ac9d5 move gender & birthday to statistic_profile 2019-06-04 13:33:00 +02:00
Sylvain
9ef2f142bd link HistoryValue to InvoicingProfile + improved invoices tests 2019-06-03 16:51:43 +02:00
Sylvain
7ed97ef35a link wallet & its transactions to invoicingprofile 2019-06-03 16:00:09 +02:00
Sylvain
1135a68682 tests must check that invoice PDF is using the invoicing_profile infos 2019-06-03 14:17:37 +02:00
Sylvain
a211ad39ff moving organization & address to invoicingProfile + refactored doc about postgre 2019-05-29 14:28:14 +02:00
Sylvain
142e07f3c9 update code to use invoicingprofile 2019-05-29 12:01:24 +02:00
Sylvain
88ab9d77a7 updated fixtures 2019-05-29 10:58:45 +02:00
Sylvain
70bc3d5732 put invoicing data into separate table 2019-05-27 13:00:05 +02:00
Sylvain
0ec009e80c fix test helper stripe_card_token + updated cassettes 2019-05-27 11:52:28 +02:00
Sylvain
c8f6e377f7 adapt test to async archive generation 2019-04-04 12:06:57 +02:00
Sylvain
6b18775578 fix syntax according to linter 2019-04-04 11:57:36 +02:00
Sylvain
8a6ff0c093 prevent closing a period not in the past 2019-04-03 17:27:25 +02:00
Sylvain
722d5d36e7 check server-side that periods match length requirements + explain requirements to user before closing 2019-04-03 13:04:19 +02:00
Sylvain
fd55c8d315 use SHA-3 (256 bits) to compute checksums + simplify accounting period integrity check UI 2019-03-21 17:15:41 +01:00
Sylvain
7b0824a4a3 notify admins when no accounting period closed for 1 year 2019-03-18 14:33:30 +01:00
Sylvain
ccd63ecfe1 include zip archive into tests + fix: allow multiple runs of test suite 2019-03-18 12:09:54 +01:00
Sylvain
dbe36e7688 updated tests fixtures for invoices checksum cohesion 2019-03-18 11:13:42 +01:00
Sylvain
da672ea8b6 Merge branch 'dev' into host 2019-01-21 16:34:06 +01:00
Sylvain
62410da9e1 add test for member autocomplete 2019-01-21 11:49:35 +01:00
Sylvain
80aab9f17c fixed: create event with custom price 2019-01-21 11:26:42 +01:00
Sylvain
a1ba272538 Merge branch 'dev' into host 2019-01-14 13:00:24 +01:00
Sylvain
0927336956 fixed reservation after removing disable_invoicing + updated vcr cassettes 2019-01-14 12:45:17 +01:00
Sylvain
a2eb10331e [ongoing] remove invoicing disabled per user 2019-01-10 16:50:54 +01:00
Sylvain
1db5e76bc9 tests on accounting periods + force reload periods when opening periods/avoir modal 2019-01-10 15:12:22 +01:00
Sylvain
18454b362b test that generate refund in closed period is not available 2019-01-10 14:16:59 +01:00
Sylvain
8c57588876 closed period 2015 in test fixtures 2019-01-10 12:42:01 +01:00
Sylvain
e322ac08a1 Merge branch 'dev' into us78 2019-01-10 12:40:53 +01:00
Sylvain
d00dfad8d8 improved invoices test + added fixtures 2019-01-10 12:40:42 +01:00
Sylvain
dafeb668e0 Merge branch 'dev' into us78 2019-01-09 12:07:47 +01:00
Sylvain
56829190d6 refactored invoices controller 2019-01-09 12:07:31 +01:00
Sylvain
0a684c8e13 rails DB model for accounting periods 2019-01-07 12:29:52 +01:00
Sylvain
96e980e7b2 removed dead code + improved test suite 2018-12-27 14:53:11 +01:00
Sylvain
ed65976c41 [ongoing] save settings history 2018-12-17 16:02:02 +01:00
Sylvain
425927900a members tests 2018-12-17 10:43:57 +01:00
Sylvain
d01a93e0f0 [ongoing] members tests 2018-12-12 17:24:31 +01:00
Sylvain
ae9caef8af insertions on subscriptions count 2018-12-12 15:27:12 +01:00
Sylvain
811b7193f7 improved & fixed test suite 2018-12-12 13:49:14 +01:00
Sylvain
f2eaf4e4e1 improved tests and bug fixes 2018-12-11 17:27:25 +01:00
Sylvain
ad69b647f7 fix reservation + subscription 2018-12-11 15:07:32 +01:00
Sylvain
7822ab4572 [ongoing] fix reservation processes 2018-12-10 17:20:23 +01:00
Sylvain
bef3118649 [ongoing] refactor user.subscriptions to save history
TODO: - refactor subscription.save_with_payment (stripe)
- offer free days
- extend the subscription
- renew a subscription
- buy subscription + reservation
2018-12-06 18:26:01 +01:00
Sylvain
82e6dda353 updated cassettes 2018-11-27 10:09:44 +01:00
Sylvain
0b7f84aaff updated cassettes 2018-09-18 15:38:04 +02:00
Sylvain
1e3066f6f4 Ability to parametrize machines order on the booking page 2018-09-18 15:30:54 +02:00
Sylvain
0b1ae3482e updated test suite to reflect elastic api upgrade + updated cassettes 2018-07-24 14:36:18 +02:00
Sylvain
1b33f3c865 display the machine reservation user name to other members 2018-07-24 12:24:51 +02:00
Sylvain
2cbf2c3a79 add test for machine credits 2017-12-21 14:24:50 +01:00
Sylvain
563eee40fa add test for credits 2017-12-21 12:00:11 +01:00
Sylvain
72634162c6 [bug] unable to create training credit 2017-12-21 11:49:51 +01:00
Sylvain
77e218aa7e fix test suite
- update VCR cassettes
- fix test fixtures to allow pass test suite at the end of the week
2017-12-14 16:40:01 +01:00
Sylvain
a5b718d981 fix tests with invoices 2017-12-14 15:52:34 +01:00
Sylvain
89d1586e53 update VCR cassette to fix rake test: renew subscription as user 2017-11-13 13:06:57 +01:00
Sylvain
db88eea8ba update test data, allow passing test suite 2017-09-18 11:00:20 +02:00
Sylvain
0e94f8c3d4 Redo "change DB model to allow many_to_many relationship between Slot and Reservation"
This reverts commit 4cbfbdc4e0.
2017-02-28 13:23:31 +01:00
Sylvain
4cbfbdc4e0 Revert "change DB model to allow many_to_many relationship between Slot and Reservation"
This reverts commit 03d922e214.
2017-02-28 12:36:50 +01:00
Sylvain
03d922e214 change DB model to allow many_to_many relationship between Slot and Reservation 2017-02-27 13:15:31 +01:00
Sylvain
34e8ffeffd test space availabilities api 2017-02-15 16:22:19 +01:00
Sylvain
46fbcc06f3 add attachment & characteristics to spaces 2017-02-13 15:53:12 +01:00
Sylvain
560bb46383 space db model 2017-02-13 14:38:28 +01:00
Sylvain
9edf723373 [bug] wrong statistics about hours available for reservation 2017-01-03 13:35:36 +01:00
Sylvain
df411b10b2 test wallet credit with refund invoice generation 2016-12-13 16:00:12 +01:00
Sylvain
c582d4665d improved cash coupon test 2016-12-13 15:37:43 +01:00
Sylvain
853cc67ee3 add nomal coupon test 2016-12-13 15:33:24 +01:00
Sylvain
5a1abe409a tests for price compute API 2016-12-12 16:44:56 +01:00
Sylvain
4c68f815e7 added coveralls 2016-12-01 13:08:41 +01:00
Sylvain
2a92b06ef6 test invoice with VAT 2016-12-01 12:12:44 +01:00
Sylvain
cf1c868546 test suite is now testing pdf files content 2016-12-01 11:37:09 +01:00
Sylvain
a9e593a840 fix statistics generation with cash coupon 2016-11-29 14:57:43 +01:00
Sylvain
6c933857f4 fix statistics generation with cash coupon 2016-11-29 14:57:21 +01:00
Sylvain
684a33716c tests subscription 2016-11-28 12:33:03 +01:00
Sylvain
dd177c6ec9 test reservation training 2016-11-28 12:31:22 +01:00
Sylvain
32a2699bc4 test reservation machine w/o subscription 2016-11-28 12:30:18 +01:00
Sylvain
34d2d108ba test reservation machine+subscription 2016-11-28 12:29:10 +01:00
Sylvain
35cfed126d test reservation trining w/ expired coupon 2016-11-28 12:25:35 +01:00
Sylvain
1b9d397c06 test reservation machine+plan w/ coupon 2016-11-28 12:25:03 +01:00
Sylvain
c879a7e10c test create reservation training+plan by wallet 2016-11-28 12:24:26 +01:00
Sylvain
78002e66aa add comments about prices 2016-11-28 12:23:48 +01:00
Sylvain
7858d261c3 test event reservation with wallet + coupon 2016-11-28 11:50:16 +01:00
Sylvain
265ed3967c change events test architecture 2016-11-28 11:49:59 +01:00
Sylvain
6439bc68e5 add event fixtures 2016-11-28 11:00:01 +01:00
Sylvain
585d137cfc some automated tests about cash coupons 2016-11-28 10:40:02 +01:00
Sylvain
c13f640e81 remove rails find_by_* helpers 2016-11-23 16:30:19 +01:00
Sylvain
0f8f1a14b4 add test for event reservation with custom price's category 2016-09-08 17:26:59 +02:00
Sylvain
0307972f9c add tests about event price's categories 2016-09-08 16:58:18 +02:00
Sylvain
7592a778ae clean cassettes 2016-09-08 15:51:59 +02:00
Sylvain
d233297469 check coupon code server side + integration test for wrong copon 2016-09-08 15:19:12 +02:00
Sylvain
c6d9cbd88d add integration test for coupon 2016-09-08 14:26:21 +02:00
Sylvain
53dd54b175 working custom aggs w/ result tidy in stats query 2016-09-06 16:32:41 +02:00
Sylvain
1fec50accf ability to run custom aggregation with query and append result to query 2016-09-06 14:21:52 +02:00
Sylvain
ea671d03a4 database structure for custom aggregations in statistics 2016-09-05 17:16:23 +02:00
Sylvain
ea73b9a88b fix create event without custom price + fix test fixtures 2016-08-30 14:48:22 +02:00
Sylvain
4f41aa6554 event custom prices: various fixes and removed artifacts 2016-08-30 13:07:47 +02:00
Sylvain
c6a83e98cb [ongoing] db architecture for custom prices reservation 2016-08-25 18:41:33 +02:00
Sylvain
6c3dfab0a9 API for price categories management 2016-08-24 12:30:48 +02:00
Sylvain
26aed7a1b5 ability for the admin to set custom settings for the reservation reminders + fix settings customization confirmation message 2016-08-17 12:49:52 +02:00
Sylvain
c23b6fa3e0 fix coupons test 2016-08-08 15:43:02 +02:00
Sylvain
3a932e75c0 coupon data model & tests 2016-08-03 17:25:00 +02:00
Sylvain
2afd6ade8a allow user to set his organization on registration 2016-08-02 12:27:45 +02:00
Sylvain
ccc1eaf3a0 database structure for organizations 2016-08-01 17:36:38 +02:00
Sylvain
4d2f46ca95 [feature] Async statistics export to XLSX
- fix tests due to removal of event_categories
- rake task for generating statistics
2016-07-27 11:28:54 +02:00
Sylvain
32d239f723 [Bug #28] Event type disappear when editing the event 2016-07-25 16:16:25 +02:00
Peng DU
8bebf6730f add more test for a reservation with plan and pay by wallet 2016-07-21 16:32:58 +02:00
Peng DU
909c204af5 show invoice download link in wallet transaction debit operator 2016-07-21 16:32:57 +02:00
Peng DU
9ba8e46450 refactroing wallet service, credit/debit in transaction of db, if have an error we rollback all 2016-07-21 16:32:57 +02:00
Peng DU
85153c201e test invoice wallet amount 2016-07-21 16:32:56 +02:00
Peng DU
38fafb7a70 wallet credit amount can be a float 2016-07-21 16:32:55 +02:00
Peng DU
220676b4dc test user reservation/subscription with wallet 2016-07-21 16:32:55 +02:00
Peng DU
61273bd66f fix test 2016-07-21 16:32:55 +02:00
Peng DU
31d5c6d3b3 pay totalement/partialement reservation by wallet 2016-07-21 16:32:54 +02:00
Peng DU
fc7eaaab94 add notification and alert when user wallet credit 2016-07-21 16:32:54 +02:00
Peng DU
d0956bb0aa show wallet transactions of user 2016-07-21 16:32:54 +02:00
Peng DU
1dab903054 refactoring wallet amount to concern 2016-07-21 16:32:54 +02:00
Peng DU
9116e8c04a wallet transaction type must be credit/debit 2016-07-21 16:32:54 +02:00
Peng DU
cac9e16c17 cant debit/credit a negative 2016-07-21 16:32:53 +02:00
Peng DU
363fd73bc4 add model WalletTransaction 2016-07-21 16:32:53 +02:00
Peng DU
db8a6e8a32 application can show user wallet 2016-07-21 16:32:53 +02:00
Sylvain
e930e04ed6 add age&theme filters to statistics 2016-06-30 12:48:46 +02:00
Sylvain
6e5fd86ad3 fix tests for age_range 2016-06-29 11:23:21 +02:00
Sylvain
cbbd697d38 age_range & theme for event model 2016-06-28 15:56:37 +02:00
Peng DU
beddae497a fix test user reservation without plan 2016-06-20 12:54:51 +02:00
Sylvain
c546dc45fb fix integration test: using ERB in cassette 2016-06-06 11:04:01 +02:00
Nicolas Florentin
93fc9722e9 fix tests regression, renaming fixture extension from .yml.erb to .yml 2016-06-03 10:10:13 +02:00
Sylvain
34648c7e9e event test 2016-04-13 18:33:43 +02:00
Sylvain
3016ac1e82 tests for availabilities 2016-04-13 17:26:17 +02:00
Sylvain
6f4e795d9f machine availabilities test 2016-04-13 15:19:57 +02:00
Sylvain
423431dc72 make availability fixtures dynamic 2016-04-13 15:08:49 +02:00
Sylvain
c0f57cc213 [ongoing] availability tests 2016-04-13 11:53:21 +02:00
Sylvain
02c72e55d9 test admins 2016-04-13 10:43:25 +02:00
Sylvain
cc8991f6bc fix test fixtures 2016-04-12 16:51:36 +02:00
Sylvain
7817e285f0 rake task to remove stripe secrets from VCR cassettes 2016-04-12 16:43:10 +02:00
Sylvain
745a89f18f [fixtures] make subscriptions dates dynamic 2016-04-12 15:41:22 +02:00
Sylvain
59153f4298 test admin renew subscription 2016-04-12 15:09:47 +02:00
Sylvain
f9628b4989 prevent subscription creation/modification if card_token is invalid 2016-04-11 18:37:15 +02:00
Sylvain
31ee151809 reproductible tests for invoice generation 2016-04-11 15:31:25 +02:00
Nicolas Florentin
74e2d170bf adds integration test for reservations for user with invoicing disabled 2016-04-08 10:02:45 +02:00
Nicolas Florentin
9bfd5e0362 removes block from Sidekiq::Testing setup in test_helper unless tests don't pass anymore 2016-04-07 18:05:23 +02:00
Nicolas Florentin
a5067ff466 Merge branch 'tests' of git.sleede.com:projets/fab-manager into tests 2016-04-07 17:57:59 +02:00
Nicolas Florentin
7a523a1cf8 adds reservation integration test to test subscription extension when plan is_rolling true 2016-04-07 17:56:54 +02:00
Nicolas Florentin
8c3f2d2862 implements a service to handle subscription extension after reservation, comes with tests 2016-04-07 17:55:36 +02:00
Sylvain
e0dca6c744 [ongoing] renew subscription test 2016-04-07 17:46:23 +02:00
Nicolas Florentin
7748d601f8 uses users_credits/manager service in models reservation and subscription, and adds integration tests 2016-04-07 16:02:09 +02:00
Nicolas Florentin
02b56ed6a7 users_credits/manager service, handle the case if user does not have a plan 2016-04-07 16:01:31 +02:00
Nicolas Florentin
6004dd409c Merge branch 'tests' of git.sleede.com:projets/fab-manager into tests 2016-04-07 12:57:15 +02:00
Nicolas Florentin
823b4c5e1d updates users_credits module and manager and adds tests 2016-04-07 12:57:08 +02:00