shared example for rspec