Sha256: 4702c54d0d4b6108bf385e0d494299c1bd0f5e50a68ecb9cf5f6cd289c4c4426
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
$: << '../lib' require 'geo_graf' describe GeoGraf do describe "#intersections_for" do subject(:intersections_for_input) { described_class.intersections_for(input) } let(:calculator) { double('Calculator') } let(:input) { double('Input') } let(:intersection_calculator_output) { double('Output') } before do allow(GeoGraf::IntersectionCalculator).to receive(:new).with(input).and_return(calculator) allow(calculator).to receive(:intersections).and_return(intersection_calculator_output) end it "runs intersections on a new instance of IntersectionCalculator" do expect(intersections_for_input).to eq(intersection_calculator_output) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_graf-1.0.2 | spec/geo_graf_spec.rb |