// adapt to rspec 3