6 7 8 9
# File 'lib/rectify/rspec/helpers.rb', line 6 def stub_query(query_class, options = {}) results = options.fetch(:results, []) allow(query_class).to receive(:new) { StubQuery.new(results) } end