Sha256: bc7dbeba1a53d7733082333fc570d391f7aa3b03b9af6590541c403d1074ec90
Contents?: true
Size: 783 Bytes
Versions: 8
Compression:
Stored size: 783 Bytes
Contents
require File.expand_path('../../lib/yaml_properties/diff.rb', __FILE__) describe YamlProperties::Diff do def f file File.expand_path("../fixtures/#{file}.yml", __FILE__) end it "raises an exception if two YAML files have different keys" do -> {YamlProperties::Diff.new f('file1'), f('file2')}.should raise_error end it "doesn't raise an exception if two YAML files have same keys" do -> {YamlProperties::Diff.new f('file1'), f('file4') }.should_not raise_error end it "raises a argument error if two YAML files have present vs. non-present keys" do argument_error = "Following keys are not present in both files '[\"d\"]'" -> {YamlProperties::Diff.new f('file2'),f('file3')}.should( raise_error(ArgumentError, argument_error)) end end
Version data entries
8 entries across 8 versions & 2 rubygems