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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8337d2353d44ecead65284212b4fc7a4519da06d
4
- data.tar.gz: e4df350ef3cc29910cc083a63deb8192df30c74d
3
+ metadata.gz: b0f79b24e69d84306f97cbf3c2a213335c1ac0da
4
+ data.tar.gz: b2dbb4661b3d7b4d51b14a8a3699337411966d97
5
5
  SHA512:
6
- metadata.gz: 5a1e5520d8b198b23a08e293a777c7c851f16411d2a6d294e0ca1675363beb4f07b9ac77ae16761b7979cd1351de3b38c6c3dca0c199186029289fc21653c262
7
- data.tar.gz: 551d36982c5c8a95b3009df19adfb5d7b867933d23a24814ab8dcf76107703da401081654c525744cd92e63e6c522315dbfa691668e82b0671dd7e04886b8702
6
+ metadata.gz: 091bbeb3eb20a77289efe6c002c7c7d1fbed2634650c5ad0dd5b7664822d82ea26701a3220038405191237a3aa65bf1ed946f292d44cdc7a173948ab2e6d7c36
7
+ data.tar.gz: 26fec19e8ffa78bd3cd23b485de46cb2522ff316fe26761e53b7eb9529ca654b4f6e9398a16d35f497f6b3cce85d89f5333e0a0fd008847ea8a1d931891c8650
@@ -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.9.3, 2.0.0 and 2.1.3.
11
+ Splinter has been tested on MRI 2.1.8, 2.2.4 and 2.3.0.
12
12
 
13
- [Build Icon]: https://secure.travis-ci.org/site5/splinter.png?branch=master
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-2014 Site5.com. See LICENSE for details.
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)
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Splinter
2
- VERSION = Version = '0.2.1'
2
+ VERSION = Version = '0.3.0'
3
3
  end
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.2.1
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: 2015-09-24 00:00:00.000000000 Z
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.8
127
+ rubygems_version: 2.4.5.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Splinter is a Capybara Ninja