View tests for devolved nations
View tests for devolved nations

- View tests allow us to test what would be rendered depending on different data, without having to run through all of the integration specs, which can be slow and difficult to maintain.

- The next commit will remove some integration tests as a result of adding these view test.

- These view tests use the same assertions as the corresponding integration tests did.

- These tests check that information renders correctly for postcodes from devolved nations.

- Tests to replace other integration tests will be added in following commits.

- This work is mostly taken from a spike by myself and @kevindew:
https://github.com/alphagov/collections/compare/view-tests-local-restrictions-kevin

alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections