Use Rspec 3.1.x not 3.x
Convert layout spec to a shared example
Add a functional Page class