Sha256: a5ce95996419cf38a11a2558e5897922c74e5ef559345b2a1329296a8fa8298c
Contents?: true
Size: 650 Bytes
Versions: 5
Compression:
Stored size: 650 Bytes
Contents
require 'spec_helper' require 'appraisal/utils' describe Appraisal::Utils do describe '.format_string' do it 'prints out a nice looking hash without a brackets' do hash = { :foo => 'bar', 'baz' => { :ball => 'boo' } } expect(Appraisal::Utils.format_string(hash)).to eq( ':foo => "bar", "baz" => { :ball => "boo" }' ) end end describe '.format_arguments' do it 'prints out arguments without enclosing square brackets' do arguments = [:foo, bar: { baz: 'ball' }] expect(Appraisal::Utils.format_arguments(arguments)).to eq( ':foo, :bar => { :baz => "ball" }' ) end end end
Version data entries
5 entries across 3 versions & 2 rubygems