Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 409 Bytes
# frozen_string_literal: true
require 'spec_helper'
describe AntNest do
describe '#get' do
let(:faraday_response) { double('Faraday::Response', body: ant_data) }
let(:ant_data) { 'Mock ant data' }
before do
allow(Faraday).to receive(:get).and_return(faraday_response)
end
it 'returns some ant data' do
expect(subject.get).to eq('Mock ant data')
end
end
end