Extract common RSpec methods