Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better mock db

  • Loading branch information...
commit 3cdaa53a6ee102fd05500c7ddaa8b14fea817284 1 parent 6d0b8f0
@minad minad authored
Showing with 1 addition and 1 deletion.
  1. BIN  test/mock.db-test
  2. +1 −1  test/test.rb
View
BIN  test/mock.db-test
Binary file not shown
View
2  test/test.rb
@@ -406,7 +406,7 @@ def increment(key, amount = 1)
it 'should keep the same format' do
db = Daybreak::DB.new DB_PATH, :serializer => Daybreak::Serializer::None
- 10.times {|i| db[i.to_s] = i.to_s }
+ 10.times {|i| db[(i+1000).to_s] = i.to_s }
db.close
assert_equal File.read(DB_PATH), File.read(File.join(HERE, 'mock.db-test'))
end

3 comments on commit 3cdaa53

@thejefflarson

Thanks! I had forgotten all about this.

@minad
Collaborator

Yeah, no problem. But I got a failure on travis...

@thejefflarson

Should be fixed.

Please sign in to comment.
Something went wrong with that request. Please try again.