spec/joosy/resources/modules/cacher_spec.coffee in joosy-1.2.0.beta.4 vs spec/joosy/resources/modules/cacher_spec.coffee in joosy-1.2.0.rc.1
- old
+ new
@@ -10,11 +10,11 @@
beforeEach ->
spy = @spy
class @Cacher extends Joosy.Resources.Scalar
- @include Joosy.Modules.Resources.Cacher
+ @concern Joosy.Modules.Resources.Cacher
@cache 'scalar'
@fetcher (callback) ->
spy(); callback 1
@@ -33,11 +33,11 @@
beforeEach ->
spy = @spy
class @Cacher extends Joosy.Resources.Array
- @include Joosy.Modules.Resources.Cacher
+ @concern Joosy.Modules.Resources.Cacher
@cache 'array'
@fetcher (callback) ->
spy(); callback 1, 2
@@ -61,10 +61,10 @@
beforeEach ->
spy = @spy
class @Cacher extends Joosy.Resources.Hash
- @include Joosy.Modules.Resources.Cacher
+ @concern Joosy.Modules.Resources.Cacher
@cache 'hash'
@fetcher (callback) ->
spy(); callback {foo: 'bar'}
\ No newline at end of file