diff options
| author | mo khan <mo@mokhan.ca> | 2016-06-23 22:00:10 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-06-23 22:00:10 -0600 |
| commit | 25e3e70a8a485d758c886d774d84dc2ff510457c (patch) | |
| tree | 241179fd47da38a8a0451cb312a9b5a25fc15f11 /spec/javascripts | |
| parent | b9daad61a334ed953544b7190d21f63116592d3f (diff) | |
refactor model and drop dead code.
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') - |
