fix for rspec deprecation

Fixes deprecation warning for RSpec 3