spork-rails 3.2.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +6 -5
- data/README.rdoc +2 -2
- data/features/cucumber_rails4_integration.feature +99 -0
- data/features/cucumber_rails_integration.feature +2 -6
- data/features/gemsets/rails3.0/Gemfile +9 -10
- data/features/gemsets/rails3.0/Gemfile.lock +107 -100
- data/features/gemsets/rails3.1/Gemfile +9 -10
- data/features/gemsets/rails3.1/Gemfile.lock +94 -98
- data/features/gemsets/rails3.2/Gemfile +9 -10
- data/features/gemsets/rails3.2/Gemfile.lock +91 -96
- data/features/gemsets/rails4.0/Gemfile +16 -0
- data/features/gemsets/rails4.0/Gemfile.lock +147 -0
- data/features/rails_delayed_loading_workarounds.feature +3 -1
- data/features/rspec_rails4_integration.feature +85 -0
- data/features/steps/rails_steps.rb +35 -0
- data/features/support/env.rb +1 -1
- data/lib/spork/app_framework/rails.rb +6 -2
- metadata +35 -19
checksums.yaml
ADDED
@@ -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
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gemspec
|
3
3
|
# rails is required by the gemspec
|
4
4
|
|
5
|
-
gem 'cucumber', '~>
|
6
|
-
gem 'rspec', '~>
|
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 '
|
11
|
+
if RUBY_VERSION =~ /^2\.0|^1\.9/
|
12
|
+
gem 'debugger'
|
12
13
|
else
|
13
14
|
gem 'ruby-debug'
|
14
15
|
end
|
data/README.rdoc
CHANGED
@@ -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
|
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
|
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
|
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
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gem 'sqlite3', '~> 1.3.4'
|
3
|
-
gem 'cucumber', '~> 1.
|
4
|
-
|
5
|
-
gem
|
6
|
-
gem '
|
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 '
|
8
|
+
if RUBY_VERSION =~ /^2\.0|^1\.9/
|
9
|
+
gem 'debugger'
|
11
10
|
else
|
12
|
-
gem 'ruby-debug'
|
11
|
+
gem 'ruby-debug'
|
13
12
|
end
|
14
|
-
gem 'spork',
|
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
|
5
|
-
rails (>= 3.0.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:
|
15
|
+
remote: https://rubygems.org/
|
10
16
|
specs:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
rack (~> 1.2
|
22
|
-
rack-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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.
|
47
|
+
cucumber (1.3.2)
|
43
48
|
builder (>= 2.1.2)
|
44
|
-
diff-lcs (>= 1.1.
|
45
|
-
gherkin (~> 2.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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.
|
69
|
+
mime-types (1.23)
|
70
|
+
multi_json (1.7.7)
|
63
71
|
polyglot (0.3.3)
|
64
|
-
rack (1.
|
65
|
-
rack-
|
66
|
-
rack (>=
|
67
|
-
rack-
|
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.
|
70
|
-
actionmailer (= 3.
|
71
|
-
actionpack (= 3.
|
72
|
-
activerecord (= 3.
|
73
|
-
activeresource (= 3.
|
74
|
-
activesupport (= 3.
|
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.
|
77
|
-
railties (3.
|
78
|
-
actionpack (= 3.
|
79
|
-
activesupport (= 3.
|
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 (
|
83
|
-
rake (
|
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.
|
87
|
-
rspec-core (~> 2.
|
88
|
-
rspec-expectations (~> 2.
|
89
|
-
rspec-mocks (~> 2.
|
90
|
-
rspec-core (2.
|
91
|
-
rspec-expectations (2.
|
92
|
-
diff-lcs (
|
93
|
-
rspec-mocks (2.
|
94
|
-
rspec-rails (2.
|
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.
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
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.
|
123
|
+
tzinfo (0.3.37)
|
117
124
|
|
118
125
|
PLATFORMS
|
119
126
|
ruby
|
120
127
|
|
121
128
|
DEPENDENCIES
|
122
|
-
cucumber (~> 1.
|
123
|
-
|
124
|
-
|
125
|
-
rspec
|
126
|
-
|
127
|
-
spork
|
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
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gem 'sqlite3', '~> 1.3.4'
|
3
|
-
gem 'cucumber', '~> 1.
|
4
|
-
|
5
|
-
gem
|
6
|
-
gem '
|
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 '
|
8
|
+
if RUBY_VERSION =~ /^2\.0|^1\.9/
|
9
|
+
gem 'debugger'
|
11
10
|
else
|
12
|
-
gem 'ruby-debug'
|
11
|
+
gem 'ruby-debug'
|
13
12
|
end
|
14
|
-
gem 'spork',
|
13
|
+
gem 'spork', '>= 1.0rc0'
|
15
14
|
gem 'spork-rails', :path => "../../../"
|