Sha256: a82a0092f139c5de219978bdfd797ca15b7f4251d3a98992d6b41d38bb57062b
Contents?: true
Size: 428 Bytes
Versions: 13
Compression:
Stored size: 428 Bytes
Contents
describe 'Utility' describe 'fixture()' it 'should return a files contents' fixture('test.html').should.eql '<p>test</p>' fixture('test').should.eql '<p>test</p>' end it 'should cache contents' contents = fixture('test') JSpec.cache['test'].should.eql contents JSpec.cache['test'] = 'foo' fixture('test').should.eql 'foo' delete JSpec.cache['test'] end end end
Version data entries
13 entries across 13 versions & 2 rubygems