@@ -209,13 +209,11 @@ describe('integration', function() {
209209 assert ( integration . _initialized === true ) ;
210210 } ) ;
211211
212- it ( 'should be a noop the first time if the integration assumes a pageview' , function ( ) {
212+ it ( 'should still initialize if the integration assumes a pageview' , function ( ) {
213213 var initialize = Integration . prototype . initialize = spy ( ) ;
214214 Integration . assumesPageview ( ) ;
215215 var integration = new Integration ( ) ;
216216 integration . initialize ( ) ;
217- assert ( ! initialize . called ) ;
218- integration . initialize ( ) ;
219217 assert ( initialize . called ) ;
220218 } ) ;
221219 } ) ;
@@ -322,9 +320,9 @@ describe('integration', function() {
322320 integration . initialize = spy ( ) ;
323321 } ) ;
324322
325- it ( 'should transform #page to #initialize when a pageview is assumed' , function ( ) {
323+ it ( 'should not transform #page to #initialize when a pageview is assumed' , function ( ) {
326324 integration . queue ( 'page' , [ { name : 'page' } ] ) ;
327- assert ( integration . initialize . calledWith ( { name : 'page' } ) ) ;
325+ assert ( ! integration . initialize . calledWith ( { name : 'page' } ) ) ;
328326 } ) ;
329327
330328 it ( 'should push the method and args onto the queue' , function ( ) {
@@ -343,12 +341,12 @@ describe('integration', function() {
343341 } ) ;
344342
345343 describe ( '#page' , function ( ) {
346- it ( 'should call initialize the first time when a page view is assumed' , function ( ) {
344+ it ( 'should not call initialize the first time when a page view is assumed' , function ( ) {
347345 Integration . assumesPageview ( ) ;
348346 integration = new Integration ( ) ;
349347 integration . initialize = spy ( ) ;
350348 integration . page ( { name : 'page name' } ) ;
351- assert ( integration . initialize . calledWith ( { name : 'page name' } ) ) ;
349+ assert ( ! integration . initialize . calledWith ( { name : 'page name' } ) ) ;
352350 } ) ;
353351
354352 it ( 'should return the value' , function ( ) {
0 commit comments