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

Version Path
jspec-steventux-3.3.2.1 spec/unit/spec.fixtures.js
jspec-steventux-3.3.2 spec/unit/spec.fixtures.js
jspec-3.3.3 spec/unit/spec.fixtures.js
jspec-3.3.2 spec/unit/spec.fixtures.js
jspec-3.3.1 spec/unit/spec.fixtures.js
jspec-3.3.0 spec/unit/spec.fixtures.js
jspec-3.2.1 spec/unit/spec.fixtures.js
jspec-3.2.0 spec/unit/spec.fixtures.js
jspec-3.1.3 spec/unit/spec.fixtures.js
jspec-3.1.2 spec/unit/spec.fixtures.js
jspec-3.1.1 spec/unit/spec.fixtures.js
jspec-3.1.0 spec/unit/spec.fixtures.js
jspec-3.0.0 spec/unit/spec.fixtures.js