Angus McLeod
35021eb176
DEV: Integrate subscription gem classes in rspec suite
...
I've tweaked the subscription client gem so we can just use the gem's models and tables in this plugin's rspec, which makes duplicating and stubbing them unnecessary.
See further https://github.com/paviliondev/discourse_subscription_client
2023-11-25 13:16:55 +01:00
merefield
c8263ed6aa
change name of subscription stubbing method to add clarity of intent
2023-09-28 14:27:24 +01:00
merefield
da2a56adc6
specs: ensure sub client code is mocked out
2023-09-28 13:47:22 +01:00
Angus McLeod
7d2e876584
First working version
2023-01-18 19:53:36 +01:00
Angus McLeod
eaf0b5f7ba
Update submission_spec.rb
2022-10-05 17:29:21 +02:00
Angus McLeod
c2e759b1c5
FIX: pagination and submitted_at ordering of submissions
2022-10-05 17:14:43 +02:00
Angus McLeod
c79dee3d16
Add community subscription as an explicit type
2022-09-23 15:52:05 +02:00
Angus McLeod
2f21358f10
Merge branch 'main' into pro-release
2022-08-01 16:44:42 +01:00
Angus McLeod
dd74989562
Remove out of date specs
2022-07-28 20:37:10 +01:00
Angus McLeod
69fd3d451d
merge main
2022-03-12 15:08:56 +01:00
Angus McLeod
46c86cda58
Move to new coverage approach
2022-03-12 14:00:07 +01:00
Angus McLeod
f4d419cac2
Merge branch 'pro-release' into pro-features
2021-09-07 20:10:12 +08:00
angusmcleod
23c4b45195
Add pro feature specs
2021-09-07 20:06:13 +08:00
angusmcleod
403f063b0f
Fix failing specs
2021-09-01 11:10:49 +08:00
angusmcleod
001d116298
Merge branch 'master' into pro-release
2021-09-01 10:37:50 +08:00
Faizaan Gagan
f00d01c50f
FIX: ensure single incomplete submission existence ( #136 )
...
* created method to fetch incomplete submissions
* added new field 'updated_at' to submission schema
* Revert "created method to fetch incomplete submissions"
This reverts commit 15c65236e7
.
* added logic to cleanup redundant incomplete submissions
* logic improvements and spec
* simplified the cleanup logic
* simplified the logic further
* early return to improve performance
* consolidated cleanup logic
* perform cleanup in wizard.update
* fixed issue
* minor fix
* use consistent naming
2021-08-02 13:01:49 +05:30
angusmcleod
1a78b44d35
Apply rubocop
2021-07-14 14:06:54 +08:00
angusmcleod
34fee3729c
Add pagination to submissions
2021-07-14 14:04:19 +08:00
angusmcleod
098e8418fb
Apply rubocop
2021-06-23 16:15:17 +10:00
angusmcleod
e441588aa3
Fix specs and tighten conditional handling
2021-06-23 16:13:58 +10:00
angusmcleod
d3c6733e59
Abstract and improve submission handling
2021-06-17 17:50:22 +10:00