splinter 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +3 -3
- data/lib/splinter/capybara/actions.rb +0 -5
- data/lib/splinter/rspec.rb +1 -1
- data/lib/splinter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0f79b24e69d84306f97cbf3c2a213335c1ac0da
|
4
|
+
data.tar.gz: b2dbb4661b3d7b4d51b14a8a3699337411966d97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 091bbeb3eb20a77289efe6c002c7c7d1fbed2634650c5ad0dd5b7664822d82ea26701a3220038405191237a3aa65bf1ed946f292d44cdc7a173948ab2e6d7c36
|
7
|
+
data.tar.gz: 26fec19e8ffa78bd3cd23b485de46cb2522ff316fe26761e53b7eb9529ca654b4f6e9398a16d35f497f6b3cce85d89f5333e0a0fd008847ea8a1d931891c8650
|
data/README.markdown
CHANGED
@@ -8,9 +8,9 @@ Rails forms.
|
|
8
8
|
Bonus: Splinter also includes a few performance tweaks which can be used to
|
9
9
|
speed up test suites. These are opt-in.
|
10
10
|
|
11
|
-
Splinter has been tested on MRI 1.
|
11
|
+
Splinter has been tested on MRI 2.1.8, 2.2.4 and 2.3.0.
|
12
12
|
|
13
|
-
[Build Icon]: https://
|
13
|
+
[Build Icon]: https://travis-ci.org/site5/splinter.svg?branch=master
|
14
14
|
[Build Status]: https://travis-ci.org/site5/splinter
|
15
15
|
|
16
16
|
## Installation
|
@@ -106,4 +106,4 @@ javascript_confirm(false) { click_link "Destroy" }
|
|
106
106
|
|
107
107
|
## Copyright
|
108
108
|
|
109
|
-
Copyright (c) 2012-
|
109
|
+
Copyright (c) 2012-2016 Site5.com. See LICENSE for details.
|
@@ -9,11 +9,6 @@ module Splinter
|
|
9
9
|
#
|
10
10
|
# name - The name of the screenshot. Uses the current time by default.
|
11
11
|
def take_screenshot!(name = "#{Time.now.strftime('%Y%m%d%H%M%S%L')}")
|
12
|
-
unless example.metadata[:js]
|
13
|
-
warn "Screenshots can only be captured when an example is tagged with :js => true"
|
14
|
-
return
|
15
|
-
end
|
16
|
-
|
17
12
|
if path = Splinter.screenshot_directory
|
18
13
|
args = [File.join(path, "#{name}.png"), Splinter.screenshot_options].compact
|
19
14
|
page.driver.render(*args)
|
data/lib/splinter/rspec.rb
CHANGED
@@ -3,7 +3,7 @@ require "splinter/capybara"
|
|
3
3
|
RSpec.configure do |config|
|
4
4
|
config.include Splinter::Capybara::Actions, :type => :feature
|
5
5
|
|
6
|
-
config.after :each, :type => :feature do
|
6
|
+
config.after :each, :type => :feature do |example|
|
7
7
|
take_screenshot! if Splinter.screenshot_directory &&
|
8
8
|
example.exception && example.metadata[:js]
|
9
9
|
|
data/lib/splinter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splinter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Priddle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.5.1
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Splinter is a Capybara Ninja
|