jasmine-jquery-rails 1.5.3 → 1.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8b3556accc34ab3a94e5ab912d878adbef78e6e
4
- data.tar.gz: 58ab7da7878cbe9ce2ea0c575b4bdde770890baf
3
+ metadata.gz: 0f654c4dc8bb49ce27762438413c5d27fab85de3
4
+ data.tar.gz: cf27d66ca7dd55e80aca300e307cbc78af1060d4
5
5
  SHA512:
6
- metadata.gz: 06a87ba4c95ee47b4824f0d0da470246785a2b00cfe61d47ff36cd85cb11687a08c9458967a46d79c54b30ef08217a62360500c7cdc5ac0d4667e3569bcaf588
7
- data.tar.gz: 230360dbbe128625f002ca040b4d148108c9bab61e1f1092502b23cacd70c5e648c59823a3465f9f2c1681b534918b968534838054a960087421a4b8ceba0545
6
+ metadata.gz: ae84de8e90ce7b68c4f5b4fbfa7d4ab6fb72b2e340ca269645e64688c4d92f9063ba332ad9c62131d7155822338982d5194e8a95e83c5598f7e1f452450934ff
7
+ data.tar.gz: cd539572c64e79c0957c31744f18281bf781da727eb04ac18f045e4edddb639b72747e508bdfeaefa467bfa6082fb8f110ff50e91d8528440671f2ed3c0a94f9
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["travisjeffery@gmail.com"]
7
7
  gem.summary = %q{jasmine-jquery via asset pipeline}
8
8
  gem.homepage = "http://github.com/travisjeffery/jasmine-jquery-rails"
9
-
9
+ gem.license = 'MIT'
10
10
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
11
11
  gem.files = `git ls-files`.split("\n")
12
12
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,7 +1,7 @@
1
1
  module Jasmine
2
2
  module Jquery
3
3
  module Rails
4
- VERSION = "1.5.3"
4
+ VERSION = "1.5.6"
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  Jasmine-jQuery: a set of jQuery helpers for Jasmine tests.
3
3
 
4
- Version 1.5.3
4
+ Version 1.5.6
5
5
 
6
6
  https://github.com/velesin/jasmine-jquery
7
7
 
@@ -478,6 +478,10 @@ jasmine.JQuery.matchersClass = {}
478
478
  return this.actual.find(selector).length
479
479
  },
480
480
 
481
+ toBeMatchedBy: function(selector) {
482
+ return this.actual.filter(selector).length
483
+ },
484
+
481
485
  toBeDisabled: function(selector){
482
486
  return this.actual.is(':disabled')
483
487
  },
@@ -513,7 +517,8 @@ jasmine.JQuery.matchersClass = {}
513
517
 
514
518
  // tests the existence of a specific event binding + handler
515
519
  toHandleWith: function(eventName, eventHandler) {
516
- var stack = $._data(this.actual.get(0), "events")[eventName]
520
+ var normalizedEventName = eventName.split('.')[0];
521
+ var stack = $._data(this.actual.get(0), "events")[normalizedEventName]
517
522
  for (var i = 0; i < stack.length; i++) {
518
523
  if (stack[i].handler == eventHandler) return true
519
524
  }
@@ -656,4 +661,4 @@ afterEach(function() {
656
661
  jasmine.getFixtures().cleanUp()
657
662
  jasmine.getStyleFixtures().cleanUp()
658
663
  jasmine.JQuery.events.cleanUp()
659
- })
664
+ })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Jeffery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-17 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -28,7 +28,8 @@ files:
28
28
  - lib/jasmine-jquery-rails/version.rb
29
29
  - vendor/assets/javascripts/jasmine-jquery.js
30
30
  homepage: http://github.com/travisjeffery/jasmine-jquery-rails
31
- licenses: []
31
+ licenses:
32
+ - MIT
32
33
  metadata: {}
33
34
  post_install_message:
34
35
  rdoc_options: []