spec/dummy/tmp/cache/assets/D44/0F0/sprockets%2Fc4d293b967c2e290deed3f3bd2271828 in teabag-0.5.4 vs spec/dummy/tmp/cache/assets/D44/0F0/sprockets%2Fc4d293b967c2e290deed3f3bd2271828 in teabag-0.5.5
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356489721.685605:@value"µ>{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360717989.1972852:@value"2?{I"
class:EFI"BundledAsset; FI"logical_path; FI"support/jasmine-jquery.js; FI"
pathname; FI"Y/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/support/jasmine-jquery.js; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2012-12-20T14:05:42-07:00; FI"length; FiÒ<I"digest; F"%77efa98fbebce991f0b64bcf5fe510dbI"source; FI"Ò<//https://github.com/velesin/jasmine-jquery/commit/8903b3d4c05cc558c70b3c94adc47321920a6c11
+mtime; FI"2013-01-25T20:22:14-07:00; FI"length; FiO=I"digest; F"%c248d7a515a82ea21c230f75ce77b50fI"source; FI"O=// https://github.com/velesin/jasmine-jquery/commit/f65c78fb83775bd1f0ce3dc13fe9a82dc2b4e889
var readFixtures = function() {
return jasmine.getFixtures().proxyCallTo_('read', arguments)
}
@@ -116,13 +116,11 @@
jasmine.Fixtures.prototype.clearCache = function() {
this.fixturesCache_ = {}
}
jasmine.Fixtures.prototype.cleanUp = function() {
- if (typeof($) == 'function') {
- $('#' + this.containerId).remove()
- }
+ $('#' + this.containerId).remove()
}
jasmine.Fixtures.prototype.sandbox = function(attributes) {
var attributesToSet = attributes || {}
return $('<div id="sandbox" />').attr(attributesToSet)
@@ -134,15 +132,15 @@
container = $('<div id="' + this.containerId + '" />')
container.html(html)
} else {
container = '<div id="' + this.containerId + '">' + html + '</div>'
}
- $('body').append(container)
+ $(document.body).append(container)
}
jasmine.Fixtures.prototype.addToContainer_ = function(html){
- var container = $('body').find('#'+this.containerId).append(html)
+ var container = $(document.body).find('#'+this.containerId).append(html)
if(!container.length){
this.createContainer_(html)
}
}
@@ -267,11 +265,11 @@
dataType: 'json',
url: url,
success: function(data) {
self.fixturesCache_[relativeUrl] = data
},
- error: function(jqXHR, status, errorThrown) {
+ fail: function(jqXHR, status, errorThrown) {
throw Error('JSONFixture could not be loaded: ' + url + ' (status: ' + status + ', message: ' + errorThrown.message + ')')
}
})
}
@@ -321,11 +319,12 @@
wasTriggered: function(selector, eventName) {
return !!(data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)])
},
wasPrevented: function(selector, eventName) {
- return data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)].isDefaultPrevented()
+ var e;
+ return (e = data.spiedEvents[jasmine.spiedEventsKey(selector, eventName)]) && e.isDefaultPrevented()
},
cleanUp: function() {
data.spiedEvents = {}
data.handlers = []
@@ -368,10 +367,14 @@
toExist: function() {
return $(document).find(this.actual).length
},
+ toHaveLength: function(length) {
+ return this.actual.length === length
+ },
+
toHaveAttr: function(attributeName, expectedAttributeValue) {
return hasProperty(this.actual.attr(attributeName), expectedAttributeValue)
},
toHaveProp: function(propertyName, expectedPropertyValue) {
@@ -400,11 +403,11 @@
return trimmedText == text
}
},
toHaveValue: function(value) {
- return this.actual.val() == value
+ return this.actual.val() === value
},
toHaveData: function(key, expectedValue) {
return hasProperty(this.actual.data(key), expectedValue)
},
@@ -420,11 +423,11 @@
toBeDisabled: function(selector){
return this.actual.is(':disabled')
},
toBeFocused: function(selector) {
- return this.actual.is(':focus')
+ return this.actual[0] === this.actual[0].ownerDocument.activeElement
},
toHandle: function(event) {
var events = $._data(this.actual.get(0), "events")
@@ -549,6 +552,6 @@
jasmine.getFixtures().cleanUp()
jasmine.getStyleFixtures().cleanUp()
jasmine.JQuery.events.cleanUp()
})
;
-; FI"required_assets_digest; F"%5953411d48af465070704999515c1207I"
_version; F"%6776f581a4329e299531e1d52aa59832
+; FI"required_assets_digest; F"%35081ec79a7c33664a1d20fac2ec9aaeI"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file