capybara-angular 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,7 +10,15 @@ Add this line to your application's Gemfile:
10
10
 
11
11
  ## Usage
12
12
 
13
- Use it as you would use regular Capybara API, however this time, you won't face any race conditions when working with AngularJS applications
13
+ Use it as you would use regular Capybara API, however this time, you won't face any race conditions when working with AngularJS applications.
14
+
15
+ ```ruby
16
+ include Capybara::Angular::DSL
17
+ ```
18
+
19
+ ## Limitations
20
+
21
+ At the moment it works with AngularJS applications initialized with `ng-app`.
14
22
 
15
23
  ## Contributing
16
24
 
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Angular
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -34,7 +34,7 @@ module Capybara
34
34
  end
35
35
 
36
36
  def angular_app?
37
- page.evaluate_script "(typeof $ != 'undefined') && $('[ng-app]')"
37
+ page.evaluate_script "(typeof $ != 'undefined') && $('[ng-app]').length > 0"
38
38
  end
39
39
 
40
40
  def setup_ready
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-angular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-26 00:00:00.000000000 Z
12
+ date: 2013-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: 2361578581906041586
94
+ hash: -926384177
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: 2361578581906041586
103
+ hash: -926384177
104
104
  requirements: []
105
105
  rubyforge_project:
106
106
  rubygems_version: 1.8.25