Sha256: eac193c432c55dac9743015cf2975764418b609e938f75f9027fee97805aa440
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require "spec_helper" describe HashDiff do describe ".diff" do let(:comparison) { double("comparison") } let(:left) { double("left") } let(:right) { double("right") } it "delegates to Comparison#diff" do HashDiff::Comparison.should_receive(:new).with(left, right).and_return(comparison) comparison.should_receive(:diff) HashDiff.diff(left, right) end end describe ".left_diff" do let(:comparison) { double("comparison") } let(:left) { double("left") } let(:right) { double("right") } it "delegates to Comparison#left_diff" do HashDiff::Comparison.should_receive(:new).with(left, right).and_return(comparison) comparison.should_receive(:left_diff) HashDiff.left_diff(left, right) end end describe ".right_diff" do let(:comparison) { double("comparison") } let(:left) { double("left") } let(:right) { double("right") } it "delegates to Comparison#right_diff" do HashDiff::Comparison.should_receive(:new).with(left, right).and_return(comparison) comparison.should_receive(:right_diff) HashDiff.right_diff(left, right) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hash_diff-0.6.2 | spec/hash_diff_spec.rb |
hash_diff-0.6.1 | spec/hash_diff_spec.rb |
hash_diff-0.6.0 | spec/hash_diff_spec.rb |