spec/dummy/tmp/cache/assets/CEE/930/sprockets%2Fe196521e15fd8d33e3261d5538fe8f92 in teabag-0.5.2 vs spec/dummy/tmp/cache/assets/CEE/930/sprockets%2Fe196521e15fd8d33e3261d5538fe8f92 in teabag-0.5.3
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357882148.174281:@value" @{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1359171529.032275:@value"}@{I"
class:EFI"ProcessedAsset; 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,7 +552,7 @@
jasmine.getFixtures().cleanUp()
jasmine.getStyleFixtures().cleanUp()
jasmine.JQuery.events.cleanUp()
})
;
-; FI"dependency_digest; F"%5953411d48af465070704999515c1207I"required_paths; F[I"Y/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/support/jasmine-jquery.js; FI"dependency_paths; F[{I" path; FI"Y/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/support/jasmine-jquery.js; FI"
-mtime; FI"2012-12-20T14:05:42-07:00; FI"digest; F"%f961707dabd8258c5c57716013192037I"
_version; F"%6776f581a4329e299531e1d52aa59832
+; FI"dependency_digest; F"%35081ec79a7c33664a1d20fac2ec9aaeI"required_paths; F[I"Y/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/support/jasmine-jquery.js; FI"dependency_paths; F[{I" path; FI"Y/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/support/jasmine-jquery.js; FI"
+mtime; FI"2013-01-25T20:22:14-07:00; FI"digest; F"%11ea9185e6ddcbd2a77f5cbd348f1accI"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file