spec/lib/helpers/hash_spec.rb in cascade-rb-0.2.3 vs spec/lib/helpers/hash_spec.rb in cascade-rb-0.3.0
- old
+ new
@@ -1,16 +1,18 @@
-require "spec_helper"
-require "cascade/helpers/hash"
+# frozen_string_literal: true
+require 'spec_helper'
+require 'cascade/helpers/hash'
+
describe Hash do
- describe "#reverse_merge" do
+ describe '#reverse_merge' do
using HashRefinements
let(:another_hash) { { a: 1, b: 2 } }
let(:example_hash) { { a: 4, c: 3 } }
- it "merge self into anothe hash" do
+ it 'merge self into anothe hash' do
assert_equal example_hash.reverse_merge(another_hash),
- a: 4, b: 2, c: 3
+ a: 4, b: 2, c: 3
end
end
end