Sha256: 038492ec8710f3b85fd0d04f4ae9d546e164dcf53176e20f2c1ef83f1da681ac
Contents?: true
Size: 546 Bytes
Versions: 4
Compression:
Stored size: 546 Bytes
Contents
describe 'Method', -> module = null beforeEach -> module = new Module('SampleModule') it 'should take a name and module when constructed', -> method = new Method(module, 'SampleMethod') expect(method.module).toEqual module expect(method.name).toEqual 'SampleMethod' describe 'instance', -> method = null beforeEach -> method = new Method(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