I see what you mean.  This would want all the email signup features being
re-written.



On 6 February 2014 10:24, David Heath <notifications@github.com> wrote:

> In features/email-signup-for-documents.feature:
>
> > @@ -38,3 +38,15 @@ Feature: Email signup for documents
> >      When I sign up for emails
> >      And I publish a new news article of the type "News story" called "Example News Story"
> >      And I publish a new news article of the type "Press release" called "Example Press Release"
> > +
> > +  Scenario: Signing up for a feed which is relevant to local governments
> > +    Given a published policy "Re-introduce feudalism to Cornwall" relevant to local government
> > +
> > +    When I filter the announcements list by "News stories"
> > +
> > +    Then a govuk_delivery signup should be sent for the local government feed subscription URL
>
> maybe in this case the use of mocking/expectations is not the best method
> to implement the test. You could always use another form of test double<http://www.martinfowler.com/bliki/TestDouble.html>which would record all of the relevant messages sent to the notifier for
> inspection in the last step. You could trigger the activation of this test
> double using a cucumber tag.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/alphagov/whitehall/pull/1247/files#r9495431>
> .
>