working example of view spec

this worked for me