Sha256: 613f5f74f1487719fbcf8a32e677b4241a6c15fa83ac07011cd0309159df5a83
Contents?: true
Size: 570 Bytes
Versions: 4
Compression:
Stored size: 570 Bytes
Contents
describe 'InstanceMethod', -> module = null beforeEach -> module = new Module('SampleModule') it 'should take a name and module when constructed', -> method = new InstanceMethod(module, 'SampleMethod') expect(method.module).toEqual module expect(method.name).toEqual 'SampleMethod' describe 'instance', -> method = null beforeEach -> method = new InstanceMethod(module, 'SampleMethod') it 'should Ajax fetch when asked to load', -> spyOn jQuery, 'ajax' method.load() expect(jQuery.ajax).toHaveBeenCalled()
Version data entries
4 entries across 4 versions & 1 rubygems