capybara-envjs 0.1.0.pre0 → 0.1.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -5,7 +5,7 @@
5
5
  == Description:
6
6
 
7
7
  capybara-envjs is a {Capybara}[http://github.com/jnicklas/capybara] driver for the envjs gem ({GitHub}[http://github.com/smparkes/env-js],
8
- {rubygems.org}[http://rubygems.org/gems/envjs].
8
+ {rubygems.org}[http://rubygems.org/gems/envjs]).
9
9
  It is similar to Capybara's rack-test driver in that it runs tests against your rack aplplication directly but fully supports javascript in your appliction.
10
10
 
11
11
  == Install:
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Hoe.plugin :newgem, :debugging, :doofus, :git
8
8
 
9
9
  Hoe.spec 'capybara-envjs' do
10
10
  developer 'Steven Parkes', 'smparkes@smparkes.net'
11
- self.version = "0.1.0.pre0"
11
+ self.version = "0.1.0.pre1"
12
12
 
13
13
  self.readme_file = 'README.rdoc'
14
14
  self.extra_rdoc_files = Dir['*.rdoc']
@@ -137,7 +137,7 @@ class Capybara::Driver::Envjs < Capybara::Driver::Base
137
137
  browser["window"]["$envx"]["connection"] =
138
138
  browser.master["connection"] = @connection = proc do |*args|
139
139
  xhr, responseHandler, data = *args
140
- url = xhr.url.sub %r{^file://}, ""
140
+ url = xhr.url.sub %r{^http://example.com}, ""
141
141
  params = data || {}
142
142
  method = xhr["method"].downcase.to_sym
143
143
  e = env;
@@ -167,6 +167,9 @@ class Capybara::Driver::Envjs < Capybara::Driver::Base
167
167
  end
168
168
 
169
169
  def visit(path)
170
+ as_url = URI.parse path
171
+ base = URI.parse "http://example.com"
172
+ path = (base + as_url).to_s
170
173
  browser["window"].location.href = path
171
174
  end
172
175
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 1
8
8
  - 0
9
- - pre0
10
- version: 0.1.0.pre0
9
+ - pre1
10
+ version: 0.1.0.pre1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Parkes
@@ -90,7 +90,7 @@ dependencies:
90
90
  version_requirements: *id005
91
91
  description: |-
92
92
  capybara-envjs is a {Capybara}[http://github.com/jnicklas/capybara] driver for the envjs gem ({GitHub}[http://github.com/smparkes/env-js],
93
- {rubygems.org}[http://rubygems.org/gems/envjs].
93
+ {rubygems.org}[http://rubygems.org/gems/envjs]).
94
94
  It is similar to Capybara's rack-test driver in that it runs tests against your rack aplplication directly but fully supports javascript in your appliction.
95
95
  email:
96
96
  - smparkes@smparkes.net
@@ -144,6 +144,6 @@ rubyforge_project: capybara-envjs
144
144
  rubygems_version: 1.3.6
145
145
  signing_key:
146
146
  specification_version: 3
147
- summary: capybara-envjs is a {Capybara}[http://github.com/jnicklas/capybara] driver for the envjs gem ({GitHub}[http://github.com/smparkes/env-js], {rubygems.org}[http://rubygems.org/gems/envjs]
147
+ summary: capybara-envjs is a {Capybara}[http://github.com/jnicklas/capybara] driver for the envjs gem ({GitHub}[http://github.com/smparkes/env-js], {rubygems.org}[http://rubygems.org/gems/envjs])
148
148
  test_files: []
149
149