Use macro in rspec