Rspec shared to test attribute presence