cucumber-rails 0.1.0 → 0.1.1.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -0
- data/Rakefile +8 -5
- data/VERSION +1 -1
- data/cucumber-rails.gemspec +30 -22
- data/{rails_generators → generators}/cucumber/USAGE +0 -0
- data/{rails_generators → generators}/cucumber/cucumber_generator.rb +0 -0
- data/{rails_generators → generators}/cucumber/templates/cucumber +0 -0
- data/{rails_generators → generators}/cucumber/templates/cucumber.rake +0 -0
- data/{rails_generators → generators}/cucumber/templates/cucumber_environment.rb +5 -5
- data/{rails_generators → generators}/cucumber/templates/env.rb +0 -0
- data/{rails_generators → generators}/cucumber/templates/paths.rb +0 -0
- data/{rails_generators → generators}/cucumber/templates/spork_env.rb +0 -0
- data/{rails_generators → generators}/cucumber/templates/version_check.rb +0 -0
- data/{rails_generators → generators}/cucumber/templates/webrat_steps/webrat_steps_de.rb +18 -18
- data/{rails_generators → generators}/cucumber/templates/webrat_steps/webrat_steps_en.rb +0 -0
- data/{rails_generators → generators}/feature/USAGE +0 -0
- data/{rails_generators → generators}/feature/feature_generator.rb +0 -0
- data/{rails_generators → generators}/feature/templates/feature.erb +0 -0
- data/{rails_generators → generators}/feature/templates/steps.erb +0 -0
- data/lib/cucumber/rails/action_controller.rb +38 -0
- data/lib/cucumber/rails/active_record.rb +30 -0
- data/lib/cucumber/rails/rspec.rb +10 -0
- data/lib/cucumber/rails/test_unit.rb +9 -0
- data/lib/cucumber/rails/world.rb +30 -0
- metadata +39 -24
data/README.rdoc
CHANGED
@@ -31,3 +31,8 @@ using the script/generate or script/destroy command.
|
|
31
31
|
To view the README for each generator, run it with the --help option.
|
32
32
|
|
33
33
|
script/generate cucumber --help
|
34
|
+
|
35
|
+
== Tests
|
36
|
+
|
37
|
+
This project has tests, but for practical and historical reasons they live in a different project:
|
38
|
+
http://github.com/aslakhellesoy/cucumber-rails-test/
|
data/Rakefile
CHANGED
@@ -2,15 +2,18 @@ begin
|
|
2
2
|
require 'jeweler'
|
3
3
|
Jeweler::Tasks.new do |gemspec|
|
4
4
|
gemspec.name = "cucumber-rails"
|
5
|
-
gemspec.summary = "
|
6
|
-
gemspec.description = "
|
7
|
-
gemspec.email = "
|
5
|
+
gemspec.summary = "Cucumber Generators and Runtime for Rails"
|
6
|
+
gemspec.description = "Cucumber Generators and Runtime for Rails"
|
7
|
+
gemspec.email = "cukes@googlegroups.com"
|
8
|
+
gemspec.homepage = "http://cukes.info"
|
9
|
+
gemspec.authors = ["Dennis Blöte", "Aslak Hellesøy"]
|
8
10
|
gemspec.homepage = "http://github.com/dbloete/cucumber-rails"
|
9
|
-
|
11
|
+
|
12
|
+
gemspec.add_dependency 'cucumber', '0.4.3'
|
10
13
|
end
|
11
14
|
Jeweler::GemcutterTasks.new
|
12
15
|
rescue LoadError
|
13
|
-
puts "Jeweler not available. Install it with: sudo gem install
|
16
|
+
puts "Jeweler not available. Install it with: sudo gem install jeweler"
|
14
17
|
end
|
15
18
|
|
16
19
|
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1.rc2
|
data/cucumber-rails.gemspec
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cucumber-rails}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1.rc2"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
11
|
-
s.authors = ["Dennis Bl\303\266te"]
|
12
|
-
s.date = %q{2009-11-
|
13
|
-
s.description = %q{
|
14
|
-
s.email = %q{
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Dennis Bl\303\266te", "Aslak Helles\303\270y"]
|
12
|
+
s.date = %q{2009-11-11}
|
13
|
+
s.description = %q{Cucumber Generators and Runtime for Rails}
|
14
|
+
s.email = %q{cukes@googlegroups.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
17
17
|
]
|
@@ -21,37 +21,45 @@ Gem::Specification.new do |s|
|
|
21
21
|
"Rakefile",
|
22
22
|
"VERSION",
|
23
23
|
"cucumber-rails.gemspec",
|
24
|
+
"generators/cucumber/USAGE",
|
25
|
+
"generators/cucumber/cucumber_generator.rb",
|
26
|
+
"generators/cucumber/templates/cucumber",
|
27
|
+
"generators/cucumber/templates/cucumber.rake",
|
28
|
+
"generators/cucumber/templates/cucumber_environment.rb",
|
29
|
+
"generators/cucumber/templates/env.rb",
|
30
|
+
"generators/cucumber/templates/paths.rb",
|
31
|
+
"generators/cucumber/templates/spork_env.rb",
|
32
|
+
"generators/cucumber/templates/version_check.rb",
|
33
|
+
"generators/cucumber/templates/webrat_steps/webrat_steps_de.rb",
|
34
|
+
"generators/cucumber/templates/webrat_steps/webrat_steps_en.rb",
|
35
|
+
"generators/feature/USAGE",
|
36
|
+
"generators/feature/feature_generator.rb",
|
37
|
+
"generators/feature/templates/feature.erb",
|
38
|
+
"generators/feature/templates/steps.erb",
|
24
39
|
"lib/cucumber-rails.rb",
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"rails_generators/cucumber/templates/env.rb",
|
31
|
-
"rails_generators/cucumber/templates/paths.rb",
|
32
|
-
"rails_generators/cucumber/templates/spork_env.rb",
|
33
|
-
"rails_generators/cucumber/templates/version_check.rb",
|
34
|
-
"rails_generators/cucumber/templates/webrat_steps/webrat_steps_de.rb",
|
35
|
-
"rails_generators/cucumber/templates/webrat_steps/webrat_steps_en.rb",
|
36
|
-
"rails_generators/feature/USAGE",
|
37
|
-
"rails_generators/feature/feature_generator.rb",
|
38
|
-
"rails_generators/feature/templates/feature.erb",
|
39
|
-
"rails_generators/feature/templates/steps.erb"
|
40
|
+
"lib/cucumber/rails/action_controller.rb",
|
41
|
+
"lib/cucumber/rails/active_record.rb",
|
42
|
+
"lib/cucumber/rails/rspec.rb",
|
43
|
+
"lib/cucumber/rails/test_unit.rb",
|
44
|
+
"lib/cucumber/rails/world.rb"
|
40
45
|
]
|
41
46
|
s.homepage = %q{http://github.com/dbloete/cucumber-rails}
|
42
47
|
s.rdoc_options = ["--charset=UTF-8"]
|
43
48
|
s.require_paths = ["lib"]
|
44
49
|
s.rubygems_version = %q{1.3.5}
|
45
|
-
s.summary = %q{
|
50
|
+
s.summary = %q{Cucumber Generators and Runtime for Rails}
|
46
51
|
|
47
52
|
if s.respond_to? :specification_version then
|
48
53
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
54
|
s.specification_version = 3
|
50
55
|
|
51
56
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
57
|
+
s.add_runtime_dependency(%q<cucumber>, ["= 0.4.3"])
|
52
58
|
else
|
59
|
+
s.add_dependency(%q<cucumber>, ["= 0.4.3"])
|
53
60
|
end
|
54
61
|
else
|
62
|
+
s.add_dependency(%q<cucumber>, ["= 0.4.3"])
|
55
63
|
end
|
56
64
|
end
|
57
65
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -19,12 +19,12 @@ config.action_controller.allow_forgery_protection = false
|
|
19
19
|
# ActionMailer::Base.deliveries array.
|
20
20
|
config.action_mailer.delivery_method = :test
|
21
21
|
|
22
|
-
config.gem 'cucumber', :lib => false,
|
23
|
-
config.gem 'webrat', :lib => false,
|
22
|
+
config.gem 'cucumber', :lib => false, :version => '>=<%= cucumber_version %>' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
|
23
|
+
config.gem 'webrat', :lib => false, :version => '>=0.5.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
|
24
24
|
<% if framework == :rspec -%>
|
25
|
-
config.gem 'rspec', :lib => false,
|
26
|
-
config.gem 'rspec-rails', :lib => false,
|
25
|
+
config.gem 'rspec', :lib => false, :version => '>=1.2.9' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
|
26
|
+
config.gem 'rspec-rails', :lib => false, :version => '>=1.2.9' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
|
27
27
|
<% end %>
|
28
28
|
<% if spork? -%>
|
29
|
-
config.gem 'spork', :lib => false,
|
29
|
+
config.gem 'spork', :lib => false, :version => '>=0.7.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/spork'))
|
30
30
|
<% end %>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -16,29 +16,29 @@ When /^(?:|ich )auf (.+) gehe$/ do |page_name|
|
|
16
16
|
visit path_to(page_name)
|
17
17
|
end
|
18
18
|
|
19
|
-
When /^(?:|ich ) "([^\"]*)" drücke$/ do |button|
|
19
|
+
When /^(?:|ich )auf "([^\"]*)" drücke$/ do |button|
|
20
20
|
click_button(button)
|
21
21
|
end
|
22
22
|
|
23
|
-
When /^(?:|ich ) "([^\"]*)" klicke$/ do |link|
|
23
|
+
When /^(?:|ich )auf "([^\"]*)" klicke$/ do |link|
|
24
24
|
click_link(link)
|
25
25
|
end
|
26
26
|
|
27
|
-
When /^(?:|ich ) "([^\"]*)" innerhalb "([^\"]*)" klicke$/ do |link, parent|
|
27
|
+
When /^(?:|ich )auf "([^\"]*)" innerhalb "([^\"]*)" klicke$/ do |link, parent|
|
28
28
|
click_link_within(parent, link)
|
29
29
|
end
|
30
30
|
|
31
|
-
When /^(?:|ich )
|
31
|
+
When /^(?:|ich )"([^\"]*)" mit "([^\"]*)" ausfülle$/ do |field, value|
|
32
32
|
fill_in(field, :with => value)
|
33
33
|
end
|
34
34
|
|
35
|
-
When /^(?:|ich )
|
35
|
+
When /^(?:|ich )"([^\"]*)" in "([^\"]*)" eingebe$/ do |value, field|
|
36
36
|
fill_in(field, :with => value)
|
37
37
|
end
|
38
38
|
|
39
|
-
#
|
39
|
+
# Wird benutzt, um ein Formular mittels Tabelle zu füllen. Beispiel:
|
40
40
|
#
|
41
|
-
#
|
41
|
+
# Wenn ich folgendes eingebe:
|
42
42
|
# | Account Number | 5002 |
|
43
43
|
# | Expiry date | 2009-11-01 |
|
44
44
|
# | Note | Nice guy |
|
@@ -63,7 +63,7 @@ When /^(?:|ich )"([^\"]*)" als Datum und Uhrzeit auswähle$/ do |time|
|
|
63
63
|
select_datetime(time)
|
64
64
|
end
|
65
65
|
|
66
|
-
# Use this step
|
66
|
+
# Use this step when using multiple datetime_select helpers on a page or
|
67
67
|
# you want to specify which datetime to select. Given the following view:
|
68
68
|
# <%%= f.label :preferred %><br />
|
69
69
|
# <%%= f.datetime_select :preferred %>
|
@@ -100,7 +100,7 @@ end
|
|
100
100
|
# Use this step When using multiple date_select helpers on one page or
|
101
101
|
# you want to specify the name of the date on the form. For example:
|
102
102
|
# When I select "April 26, 1982" as the "Date of Birth" date
|
103
|
-
When /^(?:|ich )
|
103
|
+
When /^(?:|ich )"([^\"]*)" als "([^\"]*)" Datum auswähle$/ do |date, date_label|
|
104
104
|
select_date(date, :from => date_label)
|
105
105
|
end
|
106
106
|
|
@@ -120,7 +120,7 @@ When /^(?:|ich )die Datei "([^\"]*)" als "([^\"]*)" anhänge$/ do |path, field|
|
|
120
120
|
attach_file(field, path)
|
121
121
|
end
|
122
122
|
|
123
|
-
Then /^sollte (?:|ich )"([^\"]*)" sehen$/ do |text|
|
123
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)"([^\"]*)" sehen$/ do |text|
|
124
124
|
<% if framework == :rspec -%>
|
125
125
|
response.should contain(text)
|
126
126
|
<% else -%>
|
@@ -128,7 +128,7 @@ Then /^sollte (?:|ich )"([^\"]*)" sehen$/ do |text|
|
|
128
128
|
<% end -%>
|
129
129
|
end
|
130
130
|
|
131
|
-
Then /^sollte (?:|ich )"([^\"]*)" innerhalb "([^\"]*)" sehen$/ do |text, selector|
|
131
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)"([^\"]*)" innerhalb "([^\"]*)" sehen$/ do |text, selector|
|
132
132
|
within(selector) do |content|
|
133
133
|
<% if framework == :rspec -%>
|
134
134
|
content.should contain(text)
|
@@ -138,7 +138,7 @@ Then /^sollte (?:|ich )"([^\"]*)" innerhalb "([^\"]*)" sehen$/ do |text, selecto
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
-
Then /^sollte (?:|ich )\/([^\/]*)\/ sehen$/ do |regexp|
|
141
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)\/([^\/]*)\/ sehen$/ do |regexp|
|
142
142
|
regexp = Regexp.new(regexp)
|
143
143
|
<% if framework == :rspec -%>
|
144
144
|
response.should contain(regexp)
|
@@ -147,7 +147,7 @@ Then /^sollte (?:|ich )\/([^\/]*)\/ sehen$/ do |regexp|
|
|
147
147
|
<% end -%>
|
148
148
|
end
|
149
149
|
|
150
|
-
Then /^sollte (?:|ich )\/([^\/]*)\/ innerhalb "([^\"]*)" sehen$/ do |regexp, selector|
|
150
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)\/([^\/]*)\/ innerhalb "([^\"]*)" sehen$/ do |regexp, selector|
|
151
151
|
within(selector) do |content|
|
152
152
|
regexp = Regexp.new(regexp)
|
153
153
|
<% if framework == :rspec -%>
|
@@ -158,7 +158,7 @@ Then /^sollte (?:|ich )\/([^\/]*)\/ innerhalb "([^\"]*)" sehen$/ do |regexp, sel
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
-
Then /^sollte (?:|ich )nicht "([^\"]*)" sehen$/ do |text|
|
161
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)nicht "([^\"]*)" sehen$/ do |text|
|
162
162
|
<% if framework == :rspec -%>
|
163
163
|
response.should_not contain(text)
|
164
164
|
<% else -%>
|
@@ -166,7 +166,7 @@ Then /^sollte (?:|ich )nicht "([^\"]*)" sehen$/ do |text|
|
|
166
166
|
<% end -%>
|
167
167
|
end
|
168
168
|
|
169
|
-
Then /^sollte (?:|ich )nicht "([^\"]*)" innerhalb "([^\"]*)" sehen$/ do |text, selector|
|
169
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)nicht "([^\"]*)" innerhalb "([^\"]*)" sehen$/ do |text, selector|
|
170
170
|
within(selector) do |content|
|
171
171
|
<% if framework == :rspec -%>
|
172
172
|
content.should_not contain(text)
|
@@ -176,7 +176,7 @@ Then /^sollte (?:|ich )nicht "([^\"]*)" innerhalb "([^\"]*)" sehen$/ do |text, s
|
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
-
Then /^sollte (?:|ich )nicht \/([^\/]*)\/ sehen$/ do |regexp|
|
179
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)nicht \/([^\/]*)\/ sehen$/ do |regexp|
|
180
180
|
regexp = Regexp.new(regexp)
|
181
181
|
<% if framework == :rspec -%>
|
182
182
|
response.should_not contain(regexp)
|
@@ -185,7 +185,7 @@ Then /^sollte (?:|ich )nicht \/([^\/]*)\/ sehen$/ do |regexp|
|
|
185
185
|
<% end -%>
|
186
186
|
end
|
187
187
|
|
188
|
-
Then /^sollte (?:|ich )
|
188
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)nicht \/([^\/]*)\/ innerhalb "([^\"]*)" sehen$/ do |regexp, selector|
|
189
189
|
within(selector) do |content|
|
190
190
|
regexp = Regexp.new(regexp)
|
191
191
|
<% if framework == :rspec -%>
|
@@ -228,7 +228,7 @@ Then /^sollte die "([^\"]*)" Checkbox nicht angehakt sein$/ do |label|
|
|
228
228
|
<% end -%>
|
229
229
|
end
|
230
230
|
|
231
|
-
Then /^sollte (?:|ich )auf (.+) sein$/ do |page_name|
|
231
|
+
Then /^(?:|ich sollte |sollte (?:|ich )?)auf (.+) sein$/ do |page_name|
|
232
232
|
<% if framework == :rspec -%>
|
233
233
|
URI.parse(current_url).path.should == path_to(page_name)
|
234
234
|
<% else -%>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,38 @@
|
|
1
|
+
ActionController::Base.class_eval do
|
2
|
+
cattr_accessor :allow_rescue
|
3
|
+
|
4
|
+
alias_method :rescue_action_without_bypass, :rescue_action
|
5
|
+
|
6
|
+
def rescue_action(exception)
|
7
|
+
if ActionController::Base.allow_rescue
|
8
|
+
rescue_action_without_bypass(exception)
|
9
|
+
else
|
10
|
+
raise exception
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
begin
|
16
|
+
ActionController::Failsafe.class_eval do
|
17
|
+
alias_method :failsafe_response_without_bypass, :failsafe_response
|
18
|
+
|
19
|
+
def failsafe_response(exception)
|
20
|
+
raise exception
|
21
|
+
end
|
22
|
+
end
|
23
|
+
rescue NameError # Failsafe was introduced in Rails 2.3.2
|
24
|
+
ActionController::Dispatcher.class_eval do
|
25
|
+
def self.failsafe_response(output, status, exception = nil)
|
26
|
+
raise exception
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Before('@allow-rescue') do
|
32
|
+
@__orig_allow_rescue = ActionController::Base.allow_rescue
|
33
|
+
ActionController::Base.allow_rescue = true
|
34
|
+
end
|
35
|
+
|
36
|
+
After('@allow-rescue') do
|
37
|
+
ActionController::Base.allow_rescue = @__orig_allow_rescue
|
38
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
if defined?(ActiveRecord::Base)
|
2
|
+
Before do
|
3
|
+
$__cucumber_global_use_txn = !!Cucumber::Rails::World.use_transactional_fixtures if $__cucumber_global_use_txn.nil?
|
4
|
+
end
|
5
|
+
|
6
|
+
Before('~@no-txn') do
|
7
|
+
Cucumber::Rails::World.use_transactional_fixtures = $__cucumber_global_use_txn
|
8
|
+
end
|
9
|
+
|
10
|
+
Before('@no-txn') do
|
11
|
+
Cucumber::Rails::World.use_transactional_fixtures = false
|
12
|
+
end
|
13
|
+
|
14
|
+
Before do
|
15
|
+
if Cucumber::Rails::World.use_transactional_fixtures
|
16
|
+
run_callbacks :setup if respond_to?(:run_callbacks)
|
17
|
+
end
|
18
|
+
ActionMailer::Base.deliveries = [] if defined?(ActionMailer::Base)
|
19
|
+
end
|
20
|
+
|
21
|
+
After do
|
22
|
+
if Cucumber::Rails::World.use_transactional_fixtures
|
23
|
+
run_callbacks :teardown if respond_to?(:run_callbacks)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
else
|
27
|
+
module Cucumber::Rails
|
28
|
+
def World.fixture_table_names; []; end # Workaround for projects that don't use ActiveRecord
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
begin
|
2
|
+
require 'test/unit/testresult'
|
3
|
+
rescue LoadError => e
|
4
|
+
e.message << "\nYou must gem install test-unit. For more info see https://rspec.lighthouseapp.com/projects/16211/tickets/292"
|
5
|
+
e.message << "\nAlso make sure you have rack 1.0.0 or higher."
|
6
|
+
raise e
|
7
|
+
end
|
8
|
+
# So that Test::Unit doesn't launch at the end - makes it think it has already been run.
|
9
|
+
Test::Unit.run = true if Test::Unit.respond_to?(:run=)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
if defined?(ActiveRecord::Base)
|
2
|
+
require 'test_help'
|
3
|
+
else
|
4
|
+
require 'action_controller/test_process'
|
5
|
+
require 'action_controller/integration'
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'cucumber/rails/test_unit'
|
9
|
+
require 'cucumber/rails/action_controller'
|
10
|
+
|
11
|
+
if ::Rails.respond_to?(:configuration) && !(::Rails.configuration.cache_classes)
|
12
|
+
warn "WARNING: You have set Rails' config.cache_classes to false (most likely in config/environments/cucumber.rb). This setting is known to break Cucumber's use_transactional_fixtures method. Set config.cache_classes to true if you want to use transactional fixtures. For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165."
|
13
|
+
end
|
14
|
+
|
15
|
+
module Cucumber #:nodoc:
|
16
|
+
module Rails
|
17
|
+
class World < ActionController::IntegrationTest
|
18
|
+
include ActiveSupport::Testing::SetupAndTeardown
|
19
|
+
def initialize #:nodoc:
|
20
|
+
@_result = Test::Unit::TestResult.new
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require 'cucumber/rails/active_record'
|
27
|
+
|
28
|
+
World do
|
29
|
+
Cucumber::Rails::World.new
|
30
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Dennis Bl\xC3\xB6te"
|
8
|
+
- "Aslak Helles\xC3\xB8y"
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date: 2009-11-
|
13
|
+
date: 2009-11-11 00:00:00 +01:00
|
13
14
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: cucumber
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - "="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.4.3
|
25
|
+
version:
|
26
|
+
description: Cucumber Generators and Runtime for Rails
|
27
|
+
email: cukes@googlegroups.com
|
18
28
|
executables: []
|
19
29
|
|
20
30
|
extensions: []
|
@@ -27,22 +37,27 @@ files:
|
|
27
37
|
- Rakefile
|
28
38
|
- VERSION
|
29
39
|
- cucumber-rails.gemspec
|
40
|
+
- generators/cucumber/USAGE
|
41
|
+
- generators/cucumber/cucumber_generator.rb
|
42
|
+
- generators/cucumber/templates/cucumber
|
43
|
+
- generators/cucumber/templates/cucumber.rake
|
44
|
+
- generators/cucumber/templates/cucumber_environment.rb
|
45
|
+
- generators/cucumber/templates/env.rb
|
46
|
+
- generators/cucumber/templates/paths.rb
|
47
|
+
- generators/cucumber/templates/spork_env.rb
|
48
|
+
- generators/cucumber/templates/version_check.rb
|
49
|
+
- generators/cucumber/templates/webrat_steps/webrat_steps_de.rb
|
50
|
+
- generators/cucumber/templates/webrat_steps/webrat_steps_en.rb
|
51
|
+
- generators/feature/USAGE
|
52
|
+
- generators/feature/feature_generator.rb
|
53
|
+
- generators/feature/templates/feature.erb
|
54
|
+
- generators/feature/templates/steps.erb
|
30
55
|
- lib/cucumber-rails.rb
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
- rails_generators/cucumber/templates/env.rb
|
37
|
-
- rails_generators/cucumber/templates/paths.rb
|
38
|
-
- rails_generators/cucumber/templates/spork_env.rb
|
39
|
-
- rails_generators/cucumber/templates/version_check.rb
|
40
|
-
- rails_generators/cucumber/templates/webrat_steps/webrat_steps_de.rb
|
41
|
-
- rails_generators/cucumber/templates/webrat_steps/webrat_steps_en.rb
|
42
|
-
- rails_generators/feature/USAGE
|
43
|
-
- rails_generators/feature/feature_generator.rb
|
44
|
-
- rails_generators/feature/templates/feature.erb
|
45
|
-
- rails_generators/feature/templates/steps.erb
|
56
|
+
- lib/cucumber/rails/action_controller.rb
|
57
|
+
- lib/cucumber/rails/active_record.rb
|
58
|
+
- lib/cucumber/rails/rspec.rb
|
59
|
+
- lib/cucumber/rails/test_unit.rb
|
60
|
+
- lib/cucumber/rails/world.rb
|
46
61
|
has_rdoc: true
|
47
62
|
homepage: http://github.com/dbloete/cucumber-rails
|
48
63
|
licenses: []
|
@@ -60,9 +75,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
75
|
version:
|
61
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
77
|
requirements:
|
63
|
-
- - "
|
78
|
+
- - ">"
|
64
79
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
80
|
+
version: 1.3.1
|
66
81
|
version:
|
67
82
|
requirements: []
|
68
83
|
|
@@ -70,6 +85,6 @@ rubyforge_project:
|
|
70
85
|
rubygems_version: 1.3.5
|
71
86
|
signing_key:
|
72
87
|
specification_version: 3
|
73
|
-
summary:
|
88
|
+
summary: Cucumber Generators and Runtime for Rails
|
74
89
|
test_files: []
|
75
90
|
|