]> cat aescling's git repositories - mastodon.git/commit
Misc spec coverage improvements (#2821)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Fri, 5 May 2017 18:56:00 +0000 (14:56 -0400)
committerGitHub <noreply@github.com>
Fri, 5 May 2017 18:56:00 +0000 (14:56 -0400)
commit484c9709b67685c95de351a39e3dfb140acd3681
tree0d74cd725e46cd75ca1568d866d5d5ef906b8c0a
parentd08f1112d517788fb66d2683766cc168bac48315
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
app/mailers/notification_mailer.rb
app/models/subscription.rb
spec/mailers/notification_mailer_spec.rb
spec/models/account_filter_spec.rb
spec/models/subscription_spec.rb
spec/rails_helper.rb
spec/services/subscribe_service_spec.rb