Skip to content

Commit

Permalink
Fix test suite by setting a different database name for CacheTest.
Browse files Browse the repository at this point in the history
This was causing an issue with the rest of the test suite, which was not passing because only CacheTestModel and CacheTestModel2 were in the database.
  • Loading branch information
joshuapinter committed Apr 5, 2014
1 parent cbe3c4a commit 87bb981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/com/activeandroid/test/CacheTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class CacheTest extends AndroidTestCase {
@Override
protected void setUp() {
Configuration conf = new Configuration.Builder(getContext())
.setDatabaseName("CacheTest")
.addModelClasses(CacheTestModel.class, CacheTestModel2.class)
.create();
ActiveAndroid.initialize(conf, true);
Expand Down

0 comments on commit 87bb981

Please sign in to comment.