Skip to content

Commit 7bdf655

Browse files
committed
Use ActiveJob::QueueAdapters::TestAdapter for tests
1 parent bde57bb commit 7bdf655

17 files changed

Lines changed: 41 additions & 6 deletions

File tree

config/environments/test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969

7070
config.active_support.test_order = :random
7171

72+
config.active_job.queue_adapter = :test
73+
7274
config.three_scale.payments.merge!(enabled: true, active_merchant_mode: :test, active_merchant_logging: false)
7375

7476
config.three_scale.rolling_updates.raise_error_unknown_features = true

features/buyers/accounts/bulk_operations.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Feature: Buyer accounts bulk operations
7979
And press "Send"
8080
Then "alice@example.com" should receive no emails
8181

82+
@emails
8283
Scenario: Send email in bulk
8384
Given they go to the buyer accounts page
8485
And "alice@example.com" should receive no emails

features/buyers/service_contracts/bulk_operations.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Feature: Audience > Accounts > Service subscriptions bulk operations
5757
And press "Send"
5858
Then "jane@example.com" should receive no emails
5959

60+
@emails
6061
Scenario: Send email in bulk
6162
Given "jane@example.com" should receive no emails
6263
And "bob@example.com" should receive no emails

features/developer_portal/admin/account/invoices.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@emails
12
Feature: Dev Portal Buyer Invoices
23
In order not be confused
34
As a buyer

features/developer_portal/buyer_password_reset.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Feature: Buyer password reset
2929
And the current domain is foo.3scale.localhost
3030
And they go to the login page
3131

32+
@emails
3233
Scenario: Reset password of an existing user
3334
Given they follow "Forgot password?"
3435
And they fill in "Email" with "zed@3scale.localhost"
@@ -46,6 +47,7 @@ Feature: Buyer password reset
4647
And they press "Sign in"
4748
Then they should be logged in as "zed"
4849

50+
@emails
4951
Scenario: Invalid email
5052
Given no user exists with an email of "bob@3scale.localhost"
5153
And they follow "Forgot password?"
@@ -54,6 +56,7 @@ Feature: Buyer password reset
5456
Then they should see "A password reset link will be sent to bob@3scale.localhost if a user exists with this email"
5557
And "bob@3scale.localhost" should receive no emails
5658

59+
@emails
5760
Scenario: Wrong confirmation
5861
Given they follow "Forgot password?"
5962
And they fill in "Email" with "zed@3scale.localhost"
@@ -65,6 +68,7 @@ Feature: Buyer password reset
6568
Then they should see the password confirmation error
6669
And the password of user "zed" should not be "monkey"
6770

71+
@emails
6872
Scenario: Blank passwords
6973
When they follow "Forgot password?"
7074
And they fill in "Email" with "zed@3scale.localhost"

features/old/buyers/invitations/for_admins.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Feature: Buyer Account Invitations
5454
And confirm the dialog
5555
Then I should not see invitation for "alice@lolcats.com"
5656

57+
@emails
5758
Scenario: Resending invitations
5859
Given an invitation sent to "invited@lolcats.com" to join account "lol cats"
5960
And an invitation sent to "pending@lolcats.com" to join account "lol cats"

features/old/cms/email_templates.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Feature: Email templates management
5555
And field "Bcc" should be "bcc@3scale.localhost"
5656
And field "Cc" should be "cc@3scale.localhost"
5757

58+
@emails
5859
Scenario: New signup email template
5960
Given admin of account "foo.3scale.localhost" has email "foo@3scale.localhost"
6061
And all the rolling updates features are off

features/old/finance/reporting/buyer.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@emails
12
Feature: Billing Reporting
23
In order to be informed about my spendings
34
As a buyer of a provider that has billing enabled

features/old/signup/providers.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@audit @javascript
1+
@audit @javascript @emails
22
Feature: Signup
33
In order to use Red Hat 3scale API management infrastructure
44
As a wanna-be API provider

features/provider/admin/account/invitations.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Feature: Provider Account Settings User Invitations
7676
Then field "Send invitation to" has inline error "This invitation has already been sent."
7777
And no invitation should be sent to "alice@example.org"
7878

79+
@emails
7980
Scenario: Accepting an invitation with different email
8081
Given an invitation sent to "alice@example.org" to join account "foo.3scale.localhost"
8182
And the invitee follows the link to sign up to the provider in the invitation sent to "alice@example.org"

0 commit comments

Comments
 (0)