Sha256: d0321c992a94483ce474f11aa0e5b9ce045ddb9abe942f7b1b58028b84214431

Contents?: true

Size: 697 Bytes

Versions: 11

Compression:

Stored size: 697 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
  
  describe 'json_fixture()'
    it 'should evaluate json fixtures'
      json_fixture('test').should.eql { users : { tj : { email : 'tj@vision-media.ca' }}}
      json_fixture('test.json').should.eql { users : { tj : { email : 'tj@vision-media.ca' }}}
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
gentooboontoo-jspec-4.3.3 spec/unit/spec.fixtures.js
bootcamp-0.1.4 vendor/test_suites/jspec/spec/unit/spec.fixtures.js
bootcamp-0.1.0 vendor/test_suites/jspec/spec/unit/spec.fixtures.js
jspec-4.3.3 spec/unit/spec.fixtures.js
jspec-4.3.2 spec/unit/spec.fixtures.js
jspec-4.3.1 spec/unit/spec.fixtures.js
jspec-4.3.0 spec/unit/spec.fixtures.js
jspec-4.2.1 spec/unit/spec.fixtures.js
jspec-4.2.0 spec/unit/spec.fixtures.js
jspec-4.1.0 spec/unit/spec.fixtures.js
jspec-4.0.0 spec/unit/spec.fixtures.js