vint
10/16/2016, 1:42 PMval context = InstrumentationRegistry.getTargetContext()
val realmConfiguration = RealmConfiguration.Builder(context)
.name("TestRealm")
.inMemory()
.build()
realm = Realm.getInstance(realmConfiguration)
but now I’m using Spek
I'm wondering how can I achieve that because my tests are now in JUnit test and I cannot get the context to build Realm configuration.