diff options
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/views/google_sync_button_spec.js.coffee | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/javascripts/views/google_sync_button_spec.js.coffee b/spec/javascripts/views/google_sync_button_spec.js.coffee deleted file mode 100644 index d12b0df..0000000 --- a/spec/javascripts/views/google_sync_button_spec.js.coffee +++ /dev/null @@ -1,27 +0,0 @@ -#= require views/google_sync_button -describe "GoogleSyncButton", -> - beforeEach -> - @subject = new Stronglifters.GoogleSyncButton() - - it 'displays the correct button text', -> - expect(@subject.get('text')).toEqual("Sync with Google") - - describe "synchronize", -> - beforeEach -> - @drive = { syncFile: null } - spyOn(@drive, 'syncFile') - spyOn(@subject, 'drive').and.returnValue(@drive) - - it 'synchronizes the drive', -> - @subject.synchronize(@drive) - expect(@drive.syncFile).toHaveBeenCalled() - - it 'changes the text on the button', -> - @subject.synchronize(@drive) - expect(@subject.get('text')).toEqual('Syncing...') - - it 'changes the button icon', -> - @subject.synchronize(@drive) - expect(@subject.get('icon')).toContain('fa-spin') - expect(@subject.get('icon')).toContain('fa-spinner') - |
