Misc spec coverage improvements (#2821)
* Dont use raise_error by itself (avoids warning) * Add coverage for AccountFilter * Improve coverage and refactor for Subscription#lease_seconds * Improve coverage and refactor for NotificationMailer * Simplify assignment of min/max threshold on subscription
Showing
- app/mailers/notification_mailer.rb 14 additions, 6 deletionsapp/mailers/notification_mailer.rb
- app/models/subscription.rb 19 additions, 5 deletionsapp/models/subscription.rb
- spec/mailers/notification_mailer_spec.rb 30 additions, 0 deletionsspec/mailers/notification_mailer_spec.rb
- spec/models/account_filter_spec.rb 15 additions, 3 deletionsspec/models/account_filter_spec.rb
- spec/models/subscription_spec.rb 48 additions, 0 deletionsspec/models/subscription_spec.rb
- spec/rails_helper.rb 1 addition, 0 deletionsspec/rails_helper.rb
- spec/services/subscribe_service_spec.rb 1 addition, 1 deletionspec/services/subscribe_service_spec.rb
Loading
Please register or sign in to comment