require 'flexmock' RSpec.configure do |config| config.mock_framework = :flexmock end