Skip to content

Commit

Permalink
Change to match behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Jan 25, 2020
1 parent c8f9405 commit 7e1c641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/perf/read_write_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e1c641

Please sign in to comment.