understanding how rspec works when pass an expr