akephalos 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 ADDED
@@ -0,0 +1,23 @@
1
+ Akephalos is an interface for HTMLUnit, exposing it's headless browsing power
2
+ to Capybara. The only assumption made is that you are using Capybara and have
3
+ a java runtime available.
4
+
5
+ When running tests with ruby (1.8.7, 1.9.1), akephalos will expose its client
6
+ over DRb from a java server. When running with jruby the client will be
7
+ embedded in process.
8
+
9
+ Setup
10
+ =====
11
+
12
+ Using akephalos is as simple as requiring it and setting Capybara's javascript
13
+ driver:
14
+
15
+ require 'akephalos'
16
+ Capybara.default_javascript_driver = :akephalos
17
+
18
+ Running for Cucumber
19
+ ====================
20
+
21
+ When akephalos is required from a cucumber environment, it will only run for
22
+ features tagged with @akephalos. Set Capybara's default_javascript_driver to
23
+ also use akephalos for features tagged as @javascript.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/bernerdschaefer/akephalos"
12
12
  gem.authors = ["Bernerd Schaefer"]
13
13
 
14
- gem.add_dependency "capybara", '0.3.7'
14
+ gem.add_dependency "capybara", '0.3.8'
15
15
 
16
16
  gem.add_development_dependency "sinatra"
17
17
  gem.add_development_dependency "rspec", '1.3.0'
data/TODO.txt CHANGED
@@ -1,8 +1,13 @@
1
- 0.0.3
1
+ 0.0.4
2
2
  =======================================================================================
3
3
  * DRb server should never shut down prematurely -- missing methods, 500 errors,
4
4
  even java errors (NPE error from bad javascript).
5
5
 
6
+ 0.0.3
7
+ =======================================================================================
8
+
9
+ - Update for compatibility with capybara 0.3.8
10
+
6
11
  0.0.2 - 10 May 2010
7
12
  =======================================================================================
8
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,17 +5,21 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{akephalos}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bernerd Schaefer"]
12
- s.date = %q{2010-05-10}
12
+ s.date = %q{2010-06-03}
13
13
  s.default_executable = %q{akephalos}
14
14
  s.description = %q{}
15
15
  s.email = %q{bj.schaefer@gmail.com}
16
16
  s.executables = ["akephalos"]
17
+ s.extra_rdoc_files = [
18
+ "README"
19
+ ]
17
20
  s.files = [
18
21
  ".gitignore",
22
+ "README",
19
23
  "Rakefile",
20
24
  "TODO.txt",
21
25
  "VERSION",
@@ -67,16 +71,16 @@ Gem::Specification.new do |s|
67
71
  s.specification_version = 3
68
72
 
69
73
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
70
- s.add_runtime_dependency(%q<capybara>, ["= 0.3.7"])
74
+ s.add_runtime_dependency(%q<capybara>, ["= 0.3.8"])
71
75
  s.add_development_dependency(%q<sinatra>, [">= 0"])
72
76
  s.add_development_dependency(%q<rspec>, ["= 1.3.0"])
73
77
  else
74
- s.add_dependency(%q<capybara>, ["= 0.3.7"])
78
+ s.add_dependency(%q<capybara>, ["= 0.3.8"])
75
79
  s.add_dependency(%q<sinatra>, [">= 0"])
76
80
  s.add_dependency(%q<rspec>, ["= 1.3.0"])
77
81
  end
78
82
  else
79
- s.add_dependency(%q<capybara>, ["= 0.3.7"])
83
+ s.add_dependency(%q<capybara>, ["= 0.3.8"])
80
84
  s.add_dependency(%q<sinatra>, [">= 0"])
81
85
  s.add_dependency(%q<rspec>, ["= 1.3.0"])
82
86
  end
@@ -33,7 +33,9 @@ class Capybara::Driver::Akephalos < Capybara::Driver::Base
33
33
  elsif tag_name == 'input' and type == 'radio'
34
34
  click
35
35
  elsif tag_name == 'input' and type == 'checkbox'
36
- click
36
+ if value != self['checked']
37
+ click
38
+ end
37
39
  elsif tag_name == 'input'
38
40
  node.value = value.to_s
39
41
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bernerd Schaefer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-10 00:00:00 -05:00
17
+ date: 2010-06-03 00:00:00 -05:00
18
18
  default_executable: akephalos
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,8 +27,8 @@ dependencies:
27
27
  segments:
28
28
  - 0
29
29
  - 3
30
- - 7
31
- version: 0.3.7
30
+ - 8
31
+ version: 0.3.8
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
@@ -63,10 +63,11 @@ executables:
63
63
  - akephalos
64
64
  extensions: []
65
65
 
66
- extra_rdoc_files: []
67
-
66
+ extra_rdoc_files:
67
+ - README
68
68
  files:
69
69
  - .gitignore
70
+ - README
70
71
  - Rakefile
71
72
  - TODO.txt
72
73
  - VERSION