Sha256: 8f2ace39bd50095c3a2ebe2d813abdc5fba8896b9b116a782d99ea283a9a530a
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' module Alf class Database describe Options, "merge" do let(:opts){ Options.new(schema_cache: true) } subject{ opts.merge(schema_cache: false) } it{ should be_a(Options) } it 'is not the original' do subject.should_not be(opts) end it 'merges the new options' do subject.schema_cache?.should eq(false) end it 'does not touch the original' do opts.schema_cache?.should eq(true) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems