spork-rails 3.2.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7acc8771221f4adac301add03feb2eeb3d8360e8
4
+ data.tar.gz: 4d6868bd2e36a1cc792a43e9b84b46663ea58313
5
+ SHA512:
6
+ metadata.gz: a0e8b497e5e5dabc0d86371daac2362c5c759655dd66f4f461bef523dedfc4768ff1b7e337eeb47270eae5b755e58b03d7dc1e671130f7f56f91820f92d878e1
7
+ data.tar.gz: e72e15379809af941268126e86d5304b4552667f394db049d59911c4810cd21b00f47d284de270825e51104b2da82eb5dffbafbb253a9b17ab8b47f4046ef74b
data/Gemfile CHANGED
@@ -1,14 +1,15 @@
1
- source :gemcutter
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
  # rails is required by the gemspec
4
4
 
5
- gem 'cucumber', '~> 1.0.0'
6
- gem 'rspec', '~> 2.8'
5
+ gem 'cucumber', '~>1.3.2'
6
+ gem 'rspec', '~>2.13.0'
7
7
  gem 'rake'
8
+ gem 'spork', '>= 1.0rc0'
8
9
  gem "spork-rails", :path => "./"
9
10
 
10
- if RUBY_VERSION =~ /^1\.9/
11
- gem 'ruby-debug19'
11
+ if RUBY_VERSION =~ /^2\.0|^1\.9/
12
+ gem 'debugger'
12
13
  else
13
14
  gem 'ruby-debug'
14
15
  end
@@ -1,4 +1,4 @@
1
- = Spork Rails
1
+ = Spork Rails {<img src="https://travis-ci.org/sporkrb/spork-rails.png" alt="Build Status" />}[https://travis-ci.org/sporkrb/spork-rails]
2
2
 
3
3
  This plugin is for running spork in Ruby-on-Rails applications.
4
4
 
@@ -6,7 +6,7 @@ This plugin is for running spork in Ruby-on-Rails applications.
6
6
 
7
7
  Versions correspond to the latest Rails minor release. Gem is backwards compatible with rails as far as it makes sense to.
8
8
 
9
- * spork-rails 3.2.0: Rails 3.0.0 - 3.2.x
9
+ * spork-rails 4.0.0: Rails 3.0.0 - 4.0.0
10
10
 
11
11
  = Usage:
12
12
 
@@ -0,0 +1,99 @@
1
+ @rails4
2
+ Feature: Cucumber integration with rails
3
+ As a developer using cucumber and rails
4
+ I want to use Spork with Cucumber
5
+ In order to eliminate the startup cost of my application each time I run them
6
+
7
+ Background: Sporked env.rb
8
+ Given I am in a fresh rails project named "test_rails_project"
9
+ And the application has a model, route, and application helper
10
+ And a file named "features/support/env.rb" with:
11
+ """
12
+ require 'rubygems'
13
+ require 'spork'
14
+ ENV["RAILS_ENV"] ||= "test"
15
+
16
+
17
+ Spork.prefork do
18
+ # Loading more in this block will cause your tests to run faster. However,
19
+ # if you change any configuration or code from libraries loaded here, you'll
20
+ # need to restart spork for it take effect.
21
+
22
+ # Sets up the Rails environment for Cucumber
23
+ require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
24
+
25
+ require 'cucumber'
26
+ require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support
27
+ require 'rspec/rails'
28
+ # require 'cucumber/rails/rspec'
29
+
30
+ #### this is for this test only #######
31
+ $loaded_stuff << 'prefork block' ######
32
+ #######################################
33
+ end
34
+
35
+ Spork.each_run do
36
+ #### this is for this test only #######
37
+ $loaded_stuff << 'each_run block' #####
38
+ #######################################
39
+ end
40
+ """
41
+ And a file named "features/cucumber_rails.feature" with:
42
+ """
43
+ Feature: cucumber rails
44
+ Scenario: did it work?
45
+ Then it should work
46
+
47
+ Scenario: did it work again?
48
+ Then it should work
49
+ """
50
+ And a file named "features/support/cucumber_rails_helper.rb" with:
51
+ """
52
+ $loaded_stuff << 'features/support/cucumber_rails_helper.rb'
53
+ """
54
+ And a file named "config/database.yml" with:
55
+ """
56
+ test:
57
+ adapter: sqlite3
58
+ database: db/test.sqlite3
59
+ timeout: 5000
60
+ """
61
+ And a file named "features/step_definitions/cucumber_rails_steps.rb" with:
62
+ """
63
+ Then "it should work" do
64
+ (Rails.respond_to?(:logger) ? Rails.logger : ActionController::Base.logger).info "hey there"
65
+ $loaded_stuff.should include('ApplicationHelper')
66
+ $loaded_stuff.should include('config/routes.rb')
67
+ $loaded_stuff.should include('features/support/cucumber_rails_helper.rb')
68
+ $loaded_stuff.should include('each_run block')
69
+ $loaded_stuff.should include('prefork block')
70
+ end
71
+
72
+ Alors /ca marche/ do
73
+ end
74
+ """
75
+ Scenario: Analyzing files were preloaded
76
+ When I run spork --diagnose
77
+ Then the output should not contain "app/controllers/application.rb"
78
+ Then the output should not contain "app/controllers/application_controller.rb"
79
+ Then the output should not contain "app/controllers/application_helper.rb"
80
+ Then the output should not contain "features/step_definitions/cucumber_rails_steps.rb"
81
+ Then the output should not contain "features/support/cucumber_rails_helper.rb"
82
+
83
+ Scenario: Running spork with a rails app and no server
84
+ When I run cucumber --drb features
85
+ Then the error output should contain
86
+ """
87
+ WARNING: No DRb server is running. Running features locally
88
+ """
89
+
90
+ Scenario: Running spork with a rails app
91
+ When I fire up a spork instance with "spork cucumber"
92
+ And I run cucumber --drb features
93
+ Then the file "log/test.log" should include "hey there"
94
+
95
+ Scenario: Running spork with a rails app and a non-standard port
96
+ When I fire up a spork instance with "spork cucumber -p 9000"
97
+ And I run cucumber --drb --port 9000 features
98
+ Then the file "log/test.log" should include "hey there"
99
+
@@ -95,13 +95,9 @@ Feature: Cucumber integration with rails
95
95
  Scenario: Running spork with a rails app and observers
96
96
  When I fire up a spork instance with "spork cucumber"
97
97
  And I run cucumber --drb features
98
- Then the error output should be empty
99
- And the output should contain "It worked!"
100
- And the file "log/test.log" should include "hey there"
98
+ Then the file "log/test.log" should include "hey there"
101
99
 
102
100
  Scenario: Running spork with a rails app and a non-standard port
103
101
  When I fire up a spork instance with "spork cucumber -p 9000"
104
102
  And I run cucumber --drb --port 9000 features
105
- Then the error output should be empty
106
- And the output should contain "It worked!"
107
- And the file "log/test.log" should include "hey there"
103
+ Then the file "log/test.log" should include "hey there"
@@ -1,15 +1,14 @@
1
- source :gemcutter
1
+ source 'https://rubygems.org'
2
2
  gem 'sqlite3', '~> 1.3.4'
3
- gem 'cucumber', '~> 1.0.6'
4
- # gem 'cucumber-rails', '~> 1.0.6'
5
- gem "rspec", "2.8.0"
6
- gem 'rspec-rails'
7
- gem 'rails', '~> 3.0.7'
3
+ gem 'cucumber', '~> 1.3.2'
4
+ gem "rspec", "~> 2.13.0"
5
+ gem 'rspec-rails', "~> 2.13.2"
6
+ gem 'rails', '~> 3.0'
8
7
 
9
- if RUBY_VERSION =~ /^1\.9/
10
- gem 'ruby-debug19'
8
+ if RUBY_VERSION =~ /^2\.0|^1\.9/
9
+ gem 'debugger'
11
10
  else
12
- gem 'ruby-debug', '>= 0.10.3'
11
+ gem 'ruby-debug'
13
12
  end
14
- gem 'spork', "~> 1.0.0rc0"
13
+ gem 'spork', '>= 1.0rc0'
15
14
  gem 'spork-rails', :path => "../../../"
@@ -1,129 +1,136 @@
1
+ GIT
2
+ remote: git://github.com/sporkrb/spork.git
3
+ revision: ae2022e3bf8ca3cd2e5f0bd3678f69d6eaaff165
4
+ specs:
5
+ spork (1.0.0rc3)
6
+
1
7
  PATH
2
8
  remote: ../../../
3
9
  specs:
4
- spork-rails (3.1.0)
5
- rails (>= 3.0.0, < 3.3.0)
10
+ spork-rails (3.2.1)
11
+ rails (>= 3.0.0, < 5)
6
12
  spork (>= 1.0rc0)
7
13
 
8
14
  GEM
9
- remote: http://rubygems.org/
15
+ remote: https://rubygems.org/
10
16
  specs:
11
- abstract (1.0.0)
12
- actionmailer (3.0.11)
13
- actionpack (= 3.0.11)
14
- mail (~> 2.2.19)
15
- actionpack (3.0.11)
16
- activemodel (= 3.0.11)
17
- activesupport (= 3.0.11)
18
- builder (~> 2.1.2)
19
- erubis (~> 2.6.6)
20
- i18n (~> 0.5.0)
21
- rack (~> 1.2.1)
22
- rack-mount (~> 0.6.14)
23
- rack-test (~> 0.5.7)
24
- tzinfo (~> 0.3.23)
25
- activemodel (3.0.11)
26
- activesupport (= 3.0.11)
27
- builder (~> 2.1.2)
28
- i18n (~> 0.5.0)
29
- activerecord (3.0.11)
30
- activemodel (= 3.0.11)
31
- activesupport (= 3.0.11)
32
- arel (~> 2.0.10)
33
- tzinfo (~> 0.3.23)
34
- activeresource (3.0.11)
35
- activemodel (= 3.0.11)
36
- activesupport (= 3.0.11)
37
- activesupport (3.0.11)
38
- archive-tar-minitar (0.5.2)
39
- arel (2.0.10)
40
- builder (2.1.2)
17
+ actionmailer (3.2.13)
18
+ actionpack (= 3.2.13)
19
+ mail (~> 2.5.3)
20
+ actionpack (3.2.13)
21
+ activemodel (= 3.2.13)
22
+ activesupport (= 3.2.13)
23
+ builder (~> 3.0.0)
24
+ erubis (~> 2.7.0)
25
+ journey (~> 1.0.4)
26
+ rack (~> 1.4.5)
27
+ rack-cache (~> 1.2)
28
+ rack-test (~> 0.6.1)
29
+ sprockets (~> 2.2.1)
30
+ activemodel (3.2.13)
31
+ activesupport (= 3.2.13)
32
+ builder (~> 3.0.0)
33
+ activerecord (3.2.13)
34
+ activemodel (= 3.2.13)
35
+ activesupport (= 3.2.13)
36
+ arel (~> 3.0.2)
37
+ tzinfo (~> 0.3.29)
38
+ activeresource (3.2.13)
39
+ activemodel (= 3.2.13)
40
+ activesupport (= 3.2.13)
41
+ activesupport (3.2.13)
42
+ i18n (= 0.6.1)
43
+ multi_json (~> 1.0)
44
+ arel (3.0.2)
45
+ builder (3.0.4)
41
46
  columnize (0.3.6)
42
- cucumber (1.0.6)
47
+ cucumber (1.3.2)
43
48
  builder (>= 2.1.2)
44
- diff-lcs (>= 1.1.2)
45
- gherkin (~> 2.4.18)
46
- json (>= 1.4.6)
47
- term-ansicolor (>= 1.0.6)
48
- diff-lcs (1.1.3)
49
- erubis (2.6.6)
50
- abstract (>= 1.0.0)
51
- gherkin (2.4.21)
52
- json (>= 1.4.6)
53
- i18n (0.5.0)
54
- json (1.6.5)
55
- linecache19 (0.5.12)
56
- ruby_core_source (>= 0.1.4)
57
- mail (2.2.19)
58
- activesupport (>= 2.3.6)
59
- i18n (>= 0.4.0)
49
+ diff-lcs (>= 1.1.3)
50
+ gherkin (~> 2.12.0)
51
+ multi_json (~> 1.3)
52
+ debugger (1.6.0)
53
+ columnize (>= 0.3.1)
54
+ debugger-linecache (~> 1.2.0)
55
+ debugger-ruby_core_source (~> 1.2.1)
56
+ debugger-linecache (1.2.0)
57
+ debugger-ruby_core_source (1.2.3)
58
+ diff-lcs (1.2.4)
59
+ erubis (2.7.0)
60
+ gherkin (2.12.0)
61
+ multi_json (~> 1.3)
62
+ hike (1.2.3)
63
+ i18n (0.6.1)
64
+ journey (1.0.4)
65
+ json (1.8.0)
66
+ mail (2.5.4)
60
67
  mime-types (~> 1.16)
61
68
  treetop (~> 1.4.8)
62
- mime-types (1.17.2)
69
+ mime-types (1.23)
70
+ multi_json (1.7.7)
63
71
  polyglot (0.3.3)
64
- rack (1.2.5)
65
- rack-mount (0.6.14)
66
- rack (>= 1.0.0)
67
- rack-test (0.5.7)
72
+ rack (1.4.5)
73
+ rack-cache (1.2)
74
+ rack (>= 0.4)
75
+ rack-ssl (1.3.3)
76
+ rack
77
+ rack-test (0.6.2)
68
78
  rack (>= 1.0)
69
- rails (3.0.11)
70
- actionmailer (= 3.0.11)
71
- actionpack (= 3.0.11)
72
- activerecord (= 3.0.11)
73
- activeresource (= 3.0.11)
74
- activesupport (= 3.0.11)
79
+ rails (3.2.13)
80
+ actionmailer (= 3.2.13)
81
+ actionpack (= 3.2.13)
82
+ activerecord (= 3.2.13)
83
+ activeresource (= 3.2.13)
84
+ activesupport (= 3.2.13)
75
85
  bundler (~> 1.0)
76
- railties (= 3.0.11)
77
- railties (3.0.11)
78
- actionpack (= 3.0.11)
79
- activesupport (= 3.0.11)
86
+ railties (= 3.2.13)
87
+ railties (3.2.13)
88
+ actionpack (= 3.2.13)
89
+ activesupport (= 3.2.13)
90
+ rack-ssl (~> 1.3.2)
80
91
  rake (>= 0.8.7)
81
92
  rdoc (~> 3.4)
82
- thor (~> 0.14.4)
83
- rake (0.9.2.2)
84
- rdoc (3.12)
93
+ thor (>= 0.14.6, < 2.0)
94
+ rake (10.1.0)
95
+ rdoc (3.12.2)
85
96
  json (~> 1.4)
86
- rspec (2.8.0)
87
- rspec-core (~> 2.8.0)
88
- rspec-expectations (~> 2.8.0)
89
- rspec-mocks (~> 2.8.0)
90
- rspec-core (2.8.0)
91
- rspec-expectations (2.8.0)
92
- diff-lcs (~> 1.1.2)
93
- rspec-mocks (2.8.0)
94
- rspec-rails (2.8.1)
97
+ rspec (2.13.0)
98
+ rspec-core (~> 2.13.0)
99
+ rspec-expectations (~> 2.13.0)
100
+ rspec-mocks (~> 2.13.0)
101
+ rspec-core (2.13.1)
102
+ rspec-expectations (2.13.0)
103
+ diff-lcs (>= 1.1.3, < 2.0)
104
+ rspec-mocks (2.13.1)
105
+ rspec-rails (2.13.2)
95
106
  actionpack (>= 3.0)
96
107
  activesupport (>= 3.0)
97
108
  railties (>= 3.0)
98
- rspec (~> 2.8.0)
99
- ruby-debug-base19 (0.11.25)
100
- columnize (>= 0.3.1)
101
- linecache19 (>= 0.5.11)
102
- ruby_core_source (>= 0.1.4)
103
- ruby-debug19 (0.11.6)
104
- columnize (>= 0.3.1)
105
- linecache19 (>= 0.5.11)
106
- ruby-debug-base19 (>= 0.11.19)
107
- ruby_core_source (0.1.5)
108
- archive-tar-minitar (>= 0.5.2)
109
- spork (1.0.0rc0)
110
- sqlite3 (1.3.5)
111
- term-ansicolor (1.0.7)
112
- thor (0.14.6)
113
- treetop (1.4.10)
109
+ rspec-core (~> 2.13.0)
110
+ rspec-expectations (~> 2.13.0)
111
+ rspec-mocks (~> 2.13.0)
112
+ sprockets (2.2.2)
113
+ hike (~> 1.2)
114
+ multi_json (~> 1.0)
115
+ rack (~> 1.0)
116
+ tilt (~> 1.1, != 1.3.0)
117
+ sqlite3 (1.3.7)
118
+ thor (0.18.1)
119
+ tilt (1.4.1)
120
+ treetop (1.4.14)
114
121
  polyglot
115
122
  polyglot (>= 0.3.1)
116
- tzinfo (0.3.31)
123
+ tzinfo (0.3.37)
117
124
 
118
125
  PLATFORMS
119
126
  ruby
120
127
 
121
128
  DEPENDENCIES
122
- cucumber (~> 1.0.6)
123
- rails (~> 3.0.7)
124
- rspec (= 2.8.0)
125
- rspec-rails
126
- ruby-debug19
127
- spork (~> 1.0.0rc0)
129
+ cucumber (~> 1.3.2)
130
+ debugger
131
+ rails (~> 3.0)
132
+ rspec (~> 2.13.0)
133
+ rspec-rails (~> 2.13.2)
134
+ spork!
128
135
  spork-rails!
129
136
  sqlite3 (~> 1.3.4)
@@ -1,15 +1,14 @@
1
- source :gemcutter
1
+ source 'https://rubygems.org'
2
2
  gem 'sqlite3', '~> 1.3.4'
3
- gem 'cucumber', '~> 1.0.6'
4
- # gem 'cucumber-rails', '~> 1.0.6'
5
- gem "rspec", "2.8.0"
6
- gem 'rspec-rails'
7
- gem 'rails', '~> 3.1.0'
3
+ gem 'cucumber', '~> 1.3.2'
4
+ gem "rspec", "~> 2.13.0"
5
+ gem 'rspec-rails', "~> 2.13.2"
6
+ gem 'rails', '~> 3.1'
8
7
 
9
- if RUBY_VERSION =~ /^1\.9/
10
- gem 'ruby-debug19'
8
+ if RUBY_VERSION =~ /^2\.0|^1\.9/
9
+ gem 'debugger'
11
10
  else
12
- gem 'ruby-debug', '>= 0.10.3'
11
+ gem 'ruby-debug'
13
12
  end
14
- gem 'spork', "~> 1.0.0rc0"
13
+ gem 'spork', '>= 1.0rc0'
15
14
  gem 'spork-rails', :path => "../../../"