capybara-screenshot 0.3.22 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rspec +1 -1
  4. data/.travis.yml +9 -0
  5. data/Appraisals +31 -0
  6. data/CHANGELOG.md +16 -0
  7. data/Gemfile +1 -0
  8. data/README.md +23 -17
  9. data/Rakefile +9 -1
  10. data/capybara-screenshot.gemspec +7 -1
  11. data/gemfiles/cucumber.1.2.gemfile +9 -0
  12. data/gemfiles/cucumber.1.2.gemfile.lock +99 -0
  13. data/gemfiles/cucumber.1.3.0.gemfile +9 -0
  14. data/gemfiles/cucumber.1.3.0.gemfile.lock +100 -0
  15. data/gemfiles/latest.gemfile +8 -0
  16. data/gemfiles/latest.gemfile.lock +102 -0
  17. data/gemfiles/rspec.2.14.gemfile +9 -0
  18. data/gemfiles/rspec.2.14.gemfile.lock +98 -0
  19. data/gemfiles/rspec.2.99.gemfile +9 -0
  20. data/gemfiles/rspec.2.99.gemfile.lock +98 -0
  21. data/gemfiles/rspec.3.0.gemfile +9 -0
  22. data/gemfiles/rspec.3.0.gemfile.lock +102 -0
  23. data/gemfiles/spinach.0.7.gemfile +9 -0
  24. data/gemfiles/spinach.0.7.gemfile.lock +100 -0
  25. data/gemfiles/spinach.0.8.0.gemfile +9 -0
  26. data/gemfiles/spinach.0.8.0.gemfile.lock +100 -0
  27. data/lib/capybara-screenshot.rb +5 -0
  28. data/lib/capybara-screenshot/capybara.rb +12 -0
  29. data/lib/capybara-screenshot/cucumber.rb +18 -12
  30. data/lib/capybara-screenshot/minitest.rb +15 -16
  31. data/lib/capybara-screenshot/rspec.rb +19 -11
  32. data/lib/capybara-screenshot/rspec/text_reporter.rb +21 -3
  33. data/lib/capybara-screenshot/spinach.rb +22 -6
  34. data/lib/capybara-screenshot/testunit.rb +25 -7
  35. data/lib/capybara-screenshot/version.rb +1 -1
  36. data/spec/cucumber/cucumber_spec.rb +64 -0
  37. data/spec/cucumber/step_definitions/step_definitions.rb +18 -0
  38. data/spec/cucumber/support/env.rb +17 -0
  39. data/spec/feature/minitest_spec.rb +90 -0
  40. data/spec/feature/testunit_spec.rb +71 -0
  41. data/spec/rspec/rspec_spec.rb +101 -0
  42. data/spec/spec_helper.rb +9 -1
  43. data/spec/spinach/spinach_spec.rb +53 -0
  44. data/spec/spinach/support/spinach_failure.rb +41 -0
  45. data/spec/support/common_setup.rb +28 -0
  46. data/spec/support/html_reporter_context.rb +1 -1
  47. data/spec/support/test_app.rb +13 -0
  48. data/spec/{rspec → unit}/base_reporter_spec.rb +2 -2
  49. data/spec/{rspec_spec.rb → unit/capybara-screenshot_rspec_spec.rb} +15 -10
  50. data/spec/{capybara-screenshot_spec.rb → unit/capybara-screenshot_spec.rb} +8 -8
  51. data/spec/unit/capybara_spec.rb +50 -0
  52. data/spec/{rspec → unit/rspec_reporters}/html_embed_reporter_spec.rb +2 -2
  53. data/spec/{rspec → unit/rspec_reporters}/html_link_reporter_spec.rb +2 -2
  54. data/spec/unit/rspec_reporters/text_reporter_spec.rb +96 -0
  55. data/spec/{rspec → unit/rspec_reporters}/textmate_link_reporter_spec.rb +5 -3
  56. data/spec/unit/saver_spec.rb +269 -0
  57. metadata +161 -41
  58. data/spec/capybara-screenshot/capybara_spec.rb +0 -18
  59. data/spec/capybara-screenshot/saver_spec.rb +0 -269
  60. data/spec/rspec/text_reporter_spec.rb +0 -76
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "appraisal"
7
+ gem "rspec", "2.14"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ capybara-screenshot (1.0.0)
5
+ capybara (>= 1.0, < 3)
6
+ colored
7
+ launchy
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ addressable (2.3.6)
13
+ appraisal (1.0.2)
14
+ bundler
15
+ rake
16
+ thor (>= 0.14.0)
17
+ aruba (0.6.1)
18
+ childprocess (>= 0.3.6)
19
+ cucumber (>= 1.1.1)
20
+ rspec-expectations (>= 2.7.0)
21
+ builder (3.2.2)
22
+ capybara (2.4.1)
23
+ mime-types (>= 1.16)
24
+ nokogiri (>= 1.3.3)
25
+ rack (>= 1.0.0)
26
+ rack-test (>= 0.5.4)
27
+ xpath (~> 2.0)
28
+ childprocess (0.5.3)
29
+ ffi (~> 1.0, >= 1.0.11)
30
+ colored (1.2)
31
+ colorize (0.7.3)
32
+ cucumber (1.3.17)
33
+ builder (>= 2.1.2)
34
+ diff-lcs (>= 1.1.3)
35
+ gherkin (~> 2.12)
36
+ multi_json (>= 1.7.5, < 2.0)
37
+ multi_test (>= 0.1.1)
38
+ diff-lcs (1.2.5)
39
+ ffi (1.9.3)
40
+ gherkin (2.12.2)
41
+ multi_json (~> 1.3)
42
+ gherkin-ruby (0.3.2)
43
+ json (1.8.1)
44
+ launchy (2.4.2)
45
+ addressable (~> 2.3)
46
+ mime-types (2.3)
47
+ mini_portile (0.6.0)
48
+ minitest (5.4.1)
49
+ multi_json (1.10.1)
50
+ multi_test (0.1.1)
51
+ nokogiri (1.6.3.1)
52
+ mini_portile (= 0.6.0)
53
+ power_assert (0.1.3)
54
+ rack (1.5.2)
55
+ rack-protection (1.5.3)
56
+ rack
57
+ rack-test (0.6.2)
58
+ rack (>= 1.0)
59
+ rake (10.3.2)
60
+ rspec (2.14.0)
61
+ rspec-core (~> 2.14.0)
62
+ rspec-expectations (~> 2.14.0)
63
+ rspec-mocks (~> 2.14.0)
64
+ rspec-core (2.14.8)
65
+ rspec-expectations (2.14.5)
66
+ diff-lcs (>= 1.1.3, < 2.0)
67
+ rspec-mocks (2.14.6)
68
+ sinatra (1.4.5)
69
+ rack (~> 1.4)
70
+ rack-protection (~> 1.4)
71
+ tilt (~> 1.3, >= 1.3.4)
72
+ spinach (0.8.10)
73
+ colorize
74
+ gherkin-ruby (>= 0.3.2)
75
+ json
76
+ test-unit (3.0.1)
77
+ power_assert
78
+ thor (0.19.1)
79
+ tilt (1.4.1)
80
+ timecop (0.7.1)
81
+ xpath (2.0.0)
82
+ nokogiri (~> 1.3)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ appraisal
89
+ aruba
90
+ capybara-screenshot!
91
+ cucumber
92
+ minitest
93
+ rake
94
+ rspec (= 2.14)
95
+ sinatra
96
+ spinach
97
+ test-unit
98
+ timecop
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "appraisal"
7
+ gem "rspec", "2.99"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ capybara-screenshot (1.0.0)
5
+ capybara (>= 1.0, < 3)
6
+ colored
7
+ launchy
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ addressable (2.3.6)
13
+ appraisal (1.0.2)
14
+ bundler
15
+ rake
16
+ thor (>= 0.14.0)
17
+ aruba (0.6.1)
18
+ childprocess (>= 0.3.6)
19
+ cucumber (>= 1.1.1)
20
+ rspec-expectations (>= 2.7.0)
21
+ builder (3.2.2)
22
+ capybara (2.4.1)
23
+ mime-types (>= 1.16)
24
+ nokogiri (>= 1.3.3)
25
+ rack (>= 1.0.0)
26
+ rack-test (>= 0.5.4)
27
+ xpath (~> 2.0)
28
+ childprocess (0.5.3)
29
+ ffi (~> 1.0, >= 1.0.11)
30
+ colored (1.2)
31
+ colorize (0.7.3)
32
+ cucumber (1.3.17)
33
+ builder (>= 2.1.2)
34
+ diff-lcs (>= 1.1.3)
35
+ gherkin (~> 2.12)
36
+ multi_json (>= 1.7.5, < 2.0)
37
+ multi_test (>= 0.1.1)
38
+ diff-lcs (1.2.5)
39
+ ffi (1.9.3)
40
+ gherkin (2.12.2)
41
+ multi_json (~> 1.3)
42
+ gherkin-ruby (0.3.2)
43
+ json (1.8.1)
44
+ launchy (2.4.2)
45
+ addressable (~> 2.3)
46
+ mime-types (2.3)
47
+ mini_portile (0.6.0)
48
+ minitest (5.4.1)
49
+ multi_json (1.10.1)
50
+ multi_test (0.1.1)
51
+ nokogiri (1.6.3.1)
52
+ mini_portile (= 0.6.0)
53
+ power_assert (0.1.3)
54
+ rack (1.5.2)
55
+ rack-protection (1.5.3)
56
+ rack
57
+ rack-test (0.6.2)
58
+ rack (>= 1.0)
59
+ rake (10.3.2)
60
+ rspec (2.99.0)
61
+ rspec-core (~> 2.99.0)
62
+ rspec-expectations (~> 2.99.0)
63
+ rspec-mocks (~> 2.99.0)
64
+ rspec-core (2.99.2)
65
+ rspec-expectations (2.99.2)
66
+ diff-lcs (>= 1.1.3, < 2.0)
67
+ rspec-mocks (2.99.2)
68
+ sinatra (1.4.5)
69
+ rack (~> 1.4)
70
+ rack-protection (~> 1.4)
71
+ tilt (~> 1.3, >= 1.3.4)
72
+ spinach (0.8.10)
73
+ colorize
74
+ gherkin-ruby (>= 0.3.2)
75
+ json
76
+ test-unit (3.0.1)
77
+ power_assert
78
+ thor (0.19.1)
79
+ tilt (1.4.1)
80
+ timecop (0.7.1)
81
+ xpath (2.0.0)
82
+ nokogiri (~> 1.3)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ appraisal
89
+ aruba
90
+ capybara-screenshot!
91
+ cucumber
92
+ minitest
93
+ rake
94
+ rspec (= 2.99)
95
+ sinatra
96
+ spinach
97
+ test-unit
98
+ timecop
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "appraisal"
7
+ gem "rspec", "3.0"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,102 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ capybara-screenshot (1.0.0)
5
+ capybara (>= 1.0, < 3)
6
+ colored
7
+ launchy
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ addressable (2.3.6)
13
+ appraisal (1.0.2)
14
+ bundler
15
+ rake
16
+ thor (>= 0.14.0)
17
+ aruba (0.6.1)
18
+ childprocess (>= 0.3.6)
19
+ cucumber (>= 1.1.1)
20
+ rspec-expectations (>= 2.7.0)
21
+ builder (3.2.2)
22
+ capybara (2.4.1)
23
+ mime-types (>= 1.16)
24
+ nokogiri (>= 1.3.3)
25
+ rack (>= 1.0.0)
26
+ rack-test (>= 0.5.4)
27
+ xpath (~> 2.0)
28
+ childprocess (0.5.3)
29
+ ffi (~> 1.0, >= 1.0.11)
30
+ colored (1.2)
31
+ colorize (0.7.3)
32
+ cucumber (1.3.17)
33
+ builder (>= 2.1.2)
34
+ diff-lcs (>= 1.1.3)
35
+ gherkin (~> 2.12)
36
+ multi_json (>= 1.7.5, < 2.0)
37
+ multi_test (>= 0.1.1)
38
+ diff-lcs (1.2.5)
39
+ ffi (1.9.3)
40
+ gherkin (2.12.2)
41
+ multi_json (~> 1.3)
42
+ gherkin-ruby (0.3.2)
43
+ json (1.8.1)
44
+ launchy (2.4.2)
45
+ addressable (~> 2.3)
46
+ mime-types (2.3)
47
+ mini_portile (0.6.0)
48
+ minitest (5.4.1)
49
+ multi_json (1.10.1)
50
+ multi_test (0.1.1)
51
+ nokogiri (1.6.3.1)
52
+ mini_portile (= 0.6.0)
53
+ power_assert (0.1.3)
54
+ rack (1.5.2)
55
+ rack-protection (1.5.3)
56
+ rack
57
+ rack-test (0.6.2)
58
+ rack (>= 1.0)
59
+ rake (10.3.2)
60
+ rspec (3.0.0)
61
+ rspec-core (~> 3.0.0)
62
+ rspec-expectations (~> 3.0.0)
63
+ rspec-mocks (~> 3.0.0)
64
+ rspec-core (3.0.4)
65
+ rspec-support (~> 3.0.0)
66
+ rspec-expectations (3.0.4)
67
+ diff-lcs (>= 1.2.0, < 2.0)
68
+ rspec-support (~> 3.0.0)
69
+ rspec-mocks (3.0.4)
70
+ rspec-support (~> 3.0.0)
71
+ rspec-support (3.0.4)
72
+ sinatra (1.4.5)
73
+ rack (~> 1.4)
74
+ rack-protection (~> 1.4)
75
+ tilt (~> 1.3, >= 1.3.4)
76
+ spinach (0.8.10)
77
+ colorize
78
+ gherkin-ruby (>= 0.3.2)
79
+ json
80
+ test-unit (3.0.1)
81
+ power_assert
82
+ thor (0.19.1)
83
+ tilt (1.4.1)
84
+ timecop (0.7.1)
85
+ xpath (2.0.0)
86
+ nokogiri (~> 1.3)
87
+
88
+ PLATFORMS
89
+ ruby
90
+
91
+ DEPENDENCIES
92
+ appraisal
93
+ aruba
94
+ capybara-screenshot!
95
+ cucumber
96
+ minitest
97
+ rake
98
+ rspec (= 3.0)
99
+ sinatra
100
+ spinach
101
+ test-unit
102
+ timecop
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "appraisal"
7
+ gem "spinach", "0.7"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,100 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ capybara-screenshot (1.0.0)
5
+ capybara (>= 1.0, < 3)
6
+ colored
7
+ launchy
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ addressable (2.3.6)
13
+ appraisal (1.0.2)
14
+ bundler
15
+ rake
16
+ thor (>= 0.14.0)
17
+ aruba (0.6.1)
18
+ childprocess (>= 0.3.6)
19
+ cucumber (>= 1.1.1)
20
+ rspec-expectations (>= 2.7.0)
21
+ builder (3.2.2)
22
+ capybara (2.4.1)
23
+ mime-types (>= 1.16)
24
+ nokogiri (>= 1.3.3)
25
+ rack (>= 1.0.0)
26
+ rack-test (>= 0.5.4)
27
+ xpath (~> 2.0)
28
+ childprocess (0.5.3)
29
+ ffi (~> 1.0, >= 1.0.11)
30
+ colored (1.2)
31
+ colorize (0.7.3)
32
+ cucumber (1.3.17)
33
+ builder (>= 2.1.2)
34
+ diff-lcs (>= 1.1.3)
35
+ gherkin (~> 2.12)
36
+ multi_json (>= 1.7.5, < 2.0)
37
+ multi_test (>= 0.1.1)
38
+ diff-lcs (1.2.5)
39
+ ffi (1.9.3)
40
+ gherkin (2.12.2)
41
+ multi_json (~> 1.3)
42
+ gherkin-ruby (0.2.1)
43
+ launchy (2.4.2)
44
+ addressable (~> 2.3)
45
+ mime-types (2.3)
46
+ mini_portile (0.6.0)
47
+ minitest (5.4.1)
48
+ multi_json (1.10.1)
49
+ multi_test (0.1.1)
50
+ nokogiri (1.6.3.1)
51
+ mini_portile (= 0.6.0)
52
+ power_assert (0.1.3)
53
+ rack (1.5.2)
54
+ rack-protection (1.5.3)
55
+ rack
56
+ rack-test (0.6.2)
57
+ rack (>= 1.0)
58
+ rake (10.3.2)
59
+ rspec (3.1.0)
60
+ rspec-core (~> 3.1.0)
61
+ rspec-expectations (~> 3.1.0)
62
+ rspec-mocks (~> 3.1.0)
63
+ rspec-core (3.1.3)
64
+ rspec-support (~> 3.1.0)
65
+ rspec-expectations (3.1.1)
66
+ diff-lcs (>= 1.2.0, < 2.0)
67
+ rspec-support (~> 3.1.0)
68
+ rspec-mocks (3.1.0)
69
+ rspec-support (~> 3.1.0)
70
+ rspec-support (3.1.0)
71
+ sinatra (1.4.5)
72
+ rack (~> 1.4)
73
+ rack-protection (~> 1.4)
74
+ tilt (~> 1.3, >= 1.3.4)
75
+ spinach (0.7.0)
76
+ colorize
77
+ gherkin-ruby (~> 0.2.0)
78
+ test-unit (3.0.1)
79
+ power_assert
80
+ thor (0.19.1)
81
+ tilt (1.4.1)
82
+ timecop (0.7.1)
83
+ xpath (2.0.0)
84
+ nokogiri (~> 1.3)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ appraisal
91
+ aruba
92
+ capybara-screenshot!
93
+ cucumber
94
+ minitest
95
+ rake
96
+ rspec
97
+ sinatra
98
+ spinach (= 0.7)
99
+ test-unit
100
+ timecop
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "appraisal"
7
+ gem "spinach", "0.8.0"
8
+
9
+ gemspec :path => "../"