diff --git a/spec/perf/read_write_spec.rb b/spec/perf/read_write_spec.rb index d3d0e86..f8d292e 100644 --- a/spec/perf/read_write_spec.rb +++ b/spec/perf/read_write_spec.rb @@ -14,9 +14,8 @@ store = YAML::Store.new(store_file) expect { - config.read(config_file) if config.exist? config.set(:foo, value: "bar") - config.write + config.write(config_file, force: true) }.to perform_slower_than { store.transaction { store[:foo] = "bar" } }.at_most(1.5).times