spinach 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spinach/capybara.rb +9 -16
- data/lib/spinach/version.rb +1 -1
- data/test/spinach/capybara_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c1f5d14fd17c664d04af5c26331b5ebdffd68d6
|
4
|
+
data.tar.gz: 516f1ca8cd7a2e5e63c9cdbfe805668c196e2e37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 217336b4e2db284a25387fb5fb6fc4906913992879d8fd25f51ff5f2abf35b060b9789e9450e664751d187fb274f4decf1a21814cb328491e1c3ffc61b2e88e5
|
7
|
+
data.tar.gz: 9d21d91f3894fedda12acbec8761a39dfa02d59a52fec3d5e28d58b6d845b30684c0ab1a6cbe8f997d9a4f09ee27c8356a52315a390221e7d004b8934fc072e1
|
data/lib/spinach/capybara.rb
CHANGED
@@ -17,33 +17,26 @@ module Spinach
|
|
17
17
|
# end
|
18
18
|
#
|
19
19
|
module Capybara
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
20
|
+
include ::Capybara::DSL
|
21
|
+
|
22
|
+
if defined?(RSpec)
|
23
|
+
require 'rspec/matchers'
|
24
|
+
require 'capybara/rspec'
|
25
|
+
include ::Capybara::RSpecMatchers
|
27
26
|
end
|
28
27
|
|
28
|
+
alias_method :capybara_visit, :visit
|
29
|
+
|
29
30
|
def visit(*args)
|
30
31
|
stream = STDOUT
|
31
32
|
old_stream = stream.dup
|
32
33
|
stream.reopen(null_device)
|
33
34
|
stream.sync = true
|
34
|
-
|
35
|
+
capybara_visit *args
|
35
36
|
ensure
|
36
37
|
stream.reopen(old_stream)
|
37
38
|
end
|
38
39
|
|
39
|
-
def instance
|
40
|
-
@instance ||= CapybaraDslDelegator.new
|
41
|
-
end
|
42
|
-
|
43
|
-
def method_missing(m, *args)
|
44
|
-
instance.send m, *args
|
45
|
-
end
|
46
|
-
|
47
40
|
def null_device
|
48
41
|
return @null_device if defined?(@null_device)
|
49
42
|
|
data/lib/spinach/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spinach
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-04-
|
14
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: gherkin-ruby
|