Permalink
Browse files

better mock db

  • Loading branch information...
minad committed Apr 7, 2013
1 parent 6d0b8f0 commit 3cdaa53a6ee102fd05500c7ddaa8b14fea817284
Showing with 1 addition and 1 deletion.
  1. BIN test/mock.db-test
  2. +1 −1 test/test.rb
View
Binary file not shown.
View
@@ -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

This comment has been minimized.

Show comment Hide comment
@thejefflarson

thejefflarson Apr 8, 2013

Owner

Thanks! I had forgotten all about this.

Owner

thejefflarson replied Apr 8, 2013

Thanks! I had forgotten all about this.

@minad

This comment has been minimized.

Show comment Hide comment
@minad

minad Apr 8, 2013

Collaborator

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

Collaborator

minad replied Apr 8, 2013

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

@thejefflarson

This comment has been minimized.

Show comment Hide comment
@thejefflarson

thejefflarson Apr 8, 2013

Owner

Should be fixed.

Owner

thejefflarson replied Apr 8, 2013

Should be fixed.

Please sign in to comment.