cucumber-rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ doc
3
3
  tmp
4
4
  coverage
5
5
  .bundle
6
+ .yardoc/
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber-rails (1.0.0)
4
+ cucumber-rails (1.0.1)
5
5
  capybara (>= 1.0.0)
6
6
  cucumber (~> 1.0.0)
7
- nokogiri (>= 1.4.4)
8
- rack-test (>= 0.5.7)
7
+ nokogiri (>= 1.4.6)
8
+ rack-test (>= 0.6.0)
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
@@ -42,7 +42,7 @@ GEM
42
42
  multi_json (~> 1.0)
43
43
  ansi (1.2.5)
44
44
  arel (2.1.1)
45
- aruba (0.4.2)
45
+ aruba (0.4.3)
46
46
  bcat (>= 0.6.1)
47
47
  childprocess (>= 0.1.9)
48
48
  cucumber (>= 0.10.7)
@@ -84,11 +84,11 @@ GEM
84
84
  json (>= 1.4.6)
85
85
  hike (1.1.0)
86
86
  i18n (0.6.0)
87
- jquery-rails (1.0.11)
87
+ jquery-rails (1.0.12)
88
88
  railties (~> 3.0)
89
89
  thor (~> 0.14)
90
- json (1.5.2)
91
- json_pure (1.5.2)
90
+ json (1.5.3)
91
+ json_pure (1.5.3)
92
92
  mail (2.3.0)
93
93
  i18n (>= 0.4.0)
94
94
  mime-types (~> 1.16)
@@ -145,8 +145,8 @@ GEM
145
145
  rspec (~> 2.6.0)
146
146
  rubyzip (0.9.4)
147
147
  sass (3.1.3)
148
- selenium-webdriver (0.2.1)
149
- childprocess (>= 0.1.7)
148
+ selenium-webdriver (0.2.2)
149
+ childprocess (>= 0.1.9)
150
150
  ffi (>= 1.0.7)
151
151
  json_pure
152
152
  rubyzip
@@ -165,30 +165,34 @@ GEM
165
165
  turn (0.8.2)
166
166
  ansi (>= 1.2.2)
167
167
  tzinfo (0.3.28)
168
- uglifier (0.5.4)
168
+ uglifier (1.0.0)
169
169
  execjs (>= 0.3.0)
170
170
  multi_json (>= 1.0.2)
171
171
  xpath (0.1.4)
172
172
  nokogiri (~> 1.3)
173
+ yard (0.7.1)
173
174
 
174
175
  PLATFORMS
175
176
  ruby
176
177
 
177
178
  DEPENDENCIES
178
- aruba (>= 0.4.1)
179
+ aruba (>= 0.4.3)
180
+ bcat (= 0.6.1)
179
181
  bson_ext (>= 1.3.1)
180
182
  bundler (>= 1.0.15)
181
183
  coffee-script (>= 2.2.0)
182
184
  cucumber-rails!
183
185
  database_cleaner (>= 0.6.7)
184
186
  factory_girl (>= 2.0.0.beta2)
185
- jquery-rails (>= 1.0.9)
187
+ jquery-rails (>= 1.0.12)
186
188
  mongoid (>= 2.0.2)
187
189
  rails (>= 3.1.0.rc4)
188
190
  rake (>= 0.9.2)
191
+ rdiscount (= 1.6.8)
189
192
  rspec (>= 2.6.0)
190
193
  rspec-rails (>= 2.6.1)
191
- sass (>= 3.1.1)
194
+ sass (>= 3.1.3)
192
195
  sqlite3-ruby (>= 1.3.3)
193
196
  turn (>= 0.8.2)
194
- uglifier (>= 0.5.4)
197
+ uglifier (>= 1.0.0)
198
+ yard (= 0.7.1)
@@ -1,51 +1,62 @@
1
- == 0.5.2 2011-06-07
1
+ ## [v1.0.1](https://github.com/cucumber/cucumber-rails/compare/v1.0.0...v1.0.1)
2
2
 
3
- === New Features
3
+ ### New Features
4
+ * Added a @no-database-cleaner tag you can add if you don't want to run DatabaseCleaner. Useful for debugging if you want to leave data in the database. Typical use case is to run `rails server --environment test` to look at/try app with data from test. (Aslak Hellesøy)
5
+ * History file is now in Markdown format. (Aslak Hellesøy)
6
+
7
+ ## [v1.0.0](https://github.com/cucumber/cucumber-rails/compare/v0.5.2...v1.0.0)
8
+
9
+ ### New Features
10
+ * Upgraded Cucumber dependency to 1.0.0. (Aslak Hellesøy)
11
+
12
+ ## [v0.5.2](https://github.com/cucumber/cucumber-rails/compare/v0.5.1...v0.5.2)
13
+
14
+ ### New Features
4
15
  * Upgraded to Capybara 1.0.0.rc1 (Aslak Hellesøy)
5
16
  * Add stats to generator (#144 Aslak Hellesøy)
6
17
 
7
- == 0.5.1 2011-05-25
18
+ ## [v0.5.1](https://github.com/cucumber/cucumber-rails/compare/v0.5.0...v0.5.1)
8
19
 
9
- === Bugfixes
20
+ ### Bugfixes
10
21
  * Mixed DB access feature for @javascript drivers (#142 Alexander Mankuta)
11
22
  * cucumber:feature and integers. not creating feature correctly (#30 John Ivanoff, Aslak Hellesøy)
12
23
  * New project can't find capybara's "visit" (#143 Aslak Hellesøy)
13
24
  * rails generate cucumber:install attempts double run (#140 Aslak Hellesøy)
14
25
 
15
- == 0.5.0 2011-05-17
26
+ ## [v0.5.0](https://github.com/cucumber/cucumber-rails/compare/v0.5.0.beta1...v0.5.0)
16
27
 
17
- === Bugfixes
28
+ ### Bugfixes
18
29
  * undefined method `add_assertion' for nil:NilClass (#96, #97, #98 Aslak Hellesøy)
19
30
  * Capybara name error from env.rb (#125 Aslak Hellesøy)
20
31
  * Fixed date-localization bug (#138 Michael Opitz)
21
32
 
22
- == 0.5.0.beta1 2011-05-08
33
+ ## [v0.5.0.beta1](https://github.com/cucumber/cucumber-rails/compare/v0.4.1...v0.5.0.beta1)
23
34
 
24
- === Removed features
35
+ ### Removed features
25
36
  * Dropped support for Rails 2 (Aslak Hellesøy)
26
37
  * Dropped support for Webrat (Aslak Hellesøy)
27
38
  * Removed database cleaner strategy overrides (#134 Daniel Morrison, Daniel Duvall)
28
39
 
29
- === Improvements
40
+ ### Improvements
30
41
  * Upgrade to Capybara 1.0.0.beta1 or newer (#129, #130 Simon Menke, Klaus Hartl, Aslak Hellesøy)
31
42
  * Generated paths.rb cleanup (#133 Tim Pope)
32
43
  * Allow css pseudo-classes in scopers (#122 twalpole)
33
44
 
34
- == 0.4.1 2011-04-05
45
+ ## [v0.4.1](https://github.com/cucumber/cucumber-rails/compare/v0.4.0...v0.4.1)
35
46
 
36
- === Bugfixes
47
+ ### Bugfixes
37
48
  * Fixed incorrect warning in generated files. (#115 Emanuele Vicentini)
38
49
  * Fixed incorrect hooks for DatabaseCleaner (#113 Markus Bengts)
39
50
  * Throw an error if the user forgot to add DatabaseCleaner to the Gemfile, allowing them to decide whether or not to use it. (#36 Aslak Hellesøy, Ryan Bigg)
40
51
 
41
- == 0.4.0 2011-03-20
52
+ ## [v0.4.0](https://github.com/cucumber/cucumber-rails/compare/v0.3.2...v0.4.0)
42
53
 
43
- === New Features
54
+ ### New Features
44
55
  * Add selectors helper (#63 Bodaniel Jeanes)
45
56
  * Capybara date stepdefs (#66 Rob Holland)
46
57
  * The World now includes Rack::Test::Methods, allowing get, post, put delete (Aslak Hellesøy)
47
58
 
48
- === Bugfixes
59
+ ### Bugfixes
49
60
  * Allow setting rails root (#102, #103, Fabio Kreusch)
50
61
  * Fix Date selection steps and helpers (#93, #99, #100, #101, #109 James Herdman, John Ferlito, twalpole, Geoff Drake, Ricky Robinson, Michael Fleet)
51
62
  * Can not run cucumber-rails (0.4.0.beta.1) with cucumber (0.10.0) (#89 Aslak Hellesøy)
@@ -55,20 +66,18 @@
55
66
  * @allow-rescue not working in rails 3 (#31 Joe Ferris, Aslak Hellesøy)
56
67
  * Gem dependency on Nokogiri (for #tableish). (#53 Aslak Hellesøy)
57
68
 
58
- === Removed Features
69
+ ### Removed Features
59
70
  * Automatic detection of RSpec, Capybara and Webrat for install generator. Set gems explicitly in your Gemfile (Rails3) or environment.rb (Rails2)
60
71
  * Then /^(?:|I )should see JSON:$/. Use #get and #last_response instead. See features/rails3.feature. (Aslak Hellesøy)
61
72
  * Cucumber::Rails::World.use_transactional_fixtures. TODO: Explain what to do instead.
62
73
  No more Cucumber::Rails::World.use_transactional_fixtures = false. Use DatabaseCleaner.strategy = :none instead
63
74
 
64
- == 0.3.2 2010-06-06
65
-
66
- == Changed features
75
+ ## [v0.3.2](https://github.com/cucumber/cucumber-rails/compare/v0.3.1...v0.3.2)
67
76
  * web_steps.rb uses "([^"]*)" instead of "([^\"]*)" (Aslak Hellesøy)
68
77
  * Renamed cucumber:skeleton to cucumber:install (Rails 3 generator). (Aslak Hellesøy)
69
78
  * Upgraded to be compatible with rspec 2.0.0.beta.10 (#35 Gabor Ratky, Pete Yandell)
70
79
 
71
- == 0.3.1 2010-05-03
80
+ ## [v0.3.1](https://github.com/cucumber/cucumber-rails/compare/v0.3.0...v0.3.1)
72
81
 
73
82
  This release has a lot of bugfixes! The test suite (based on Aruba) verifies that Cucumber-Rails
74
83
  now works with various combinations of:
@@ -82,7 +91,6 @@ now works with various combinations of:
82
91
  This one requires a special mention: The handy (but error prone) rerun functionality has moved to a
83
92
  separate rerun profile, so all rerun.txt related issues should now be gone.
84
93
 
85
- == New features
86
94
  * New Capybara Step Definitions for Dates. (Rob Holland)
87
95
  * Steps now recognise "Given I am on the users page" etc. (Solomon White)
88
96
  * Relegate rerun to its own profile and rake task (Mike Sassak)
@@ -92,47 +100,46 @@ separate rerun profile, so all rerun.txt related issues should now be gone.
92
100
  * Added @no-js-emulation, which turns off javascript emulation for delete links when not using browser testing. (Rob Holland, Aslak Hellesøy)
93
101
  * Korean translation (Shim Taewon)
94
102
 
95
- === Bugfixes
103
+ ### Bugfixes
96
104
  * No longer need to install the test-unit gem on 1.9.1 (Aslak Hellesøy)
97
105
  * capybara rack-test field should contain step support for textarea (#28 Nicholas Rutherford)
98
106
  * "Rspec is not missing constant Matchers!" error. (#27 David Chelimsky, Aslak Hellesøy)
99
107
  * @culerity tag breaks Rails 3 RESTful helpers (#17 Aslak Hellesøy)
100
108
 
101
- == 0.3.0 2010-02-25
109
+ ## [v0.3.0](https://github.com/cucumber/cucumber-rails/compare/v0.2.4...v0.3.0)
102
110
 
103
111
  This is a major release since we're now supporting both Rails 3 and RSpec 2. Older versions
104
112
  (Rails 2 and RSpec 1) are still supported.
105
113
 
106
- === New Features
114
+ ### New Features
107
115
  * Support for both Rails-2.x and Rails-3.x (#10 Kristian Mandrup, Aleksey Gureiev, Ashley Moran, Aslak Hellesøy)
108
116
  * Support for both RSpec-1.x and RSpec-2.x (Louis Rose, Aslak Hellesøy)
109
117
  * Features will default to Javascript emulation unless you turn it off with @culerity, (Aslak Hellesøy)
110
118
  * Japanese translation. (MOROHASHI Kyosuke)
111
119
 
112
- === Bugfixes
120
+ ### Bugfixes
113
121
  * Support projects that don't use ActiveRecord (#14 Aslak Hellesøy)
114
122
  * Running test/unit tests when creating a skeleton (#12 Aleksey Gureiev)
115
123
  * Inform that config/database.yml is overwritten, be smarter about it and inform the user that it is forced. (#15 Aslak Hellesøy)
116
124
  * Reverts changes from issue #5 where verification of query string params was added to the step for being on a page. Adds step discussed in issue #11 for verification of query string. (#5, #11 Eric Milford)
117
125
  * Fixed typos in Capybara's web steps (has_not_xpath? => has_no_xpath?) (Thorbjørn Hermansen, Carlos Antonio da Silva)
118
126
 
119
- == 0.2.5 2010-02-07
120
127
 
121
- === New Features
128
+ ### New Features
122
129
  * Added Danish translation (Kristian Mandrup)
123
130
  * Using Gemfile for Rails 3. Tidies it up and adds cucumber gems only if not already present! (Kristian Mandrup)
124
131
  * Added Generators wrapper module for Rails 3 generators so they are now all in Cucumber::Generators (Kristian Mandrup)
125
132
 
126
- === Bugfixes
133
+ ### Bugfixes
127
134
  * Started to work on solutions for generating suitable support files depending on Rails version
128
135
  - see skeleton_base.rb#create_feature_support and templates/support
129
136
 
130
- == 0.2.4 2010-01-18
137
+ ## [v0.2.4](https://github.com/cucumber/cucumber-rails/compare/v0.2.3...v0.2.4)
131
138
 
132
- === New Features
139
+ ### New Features
133
140
  * Added Spanish translation (Gabriel)
134
141
 
135
- === Bugfixes
142
+ ### Bugfixes
136
143
  * Fixed some broken Webrat/Test::Unit step definitions. (Aslak Hellesøy)
137
144
  * Better Javascript emulation with Capybara (#7 Thorbjørn Hermansen)
138
145
  * Removed stray quote in i18n web_steps.rb (Gabriel)
@@ -142,46 +149,45 @@ This is a major release since we're now supporting both Rails 3 and RSpec 2. Old
142
149
  * Capybara web_steps.rb with_scope didn't work in nested steps (Lenny Marks)
143
150
  * Fixed "should not see" steps in web_steps.rb to use the correct selector (Toni Tuominen)
144
151
 
145
- == 0.2.3 2010-01-03
152
+ ## [v0.2.3](https://github.com/cucumber/cucumber-rails/compare/v0.2.2...v0.2.3)
146
153
 
147
- === New Features
154
+ ### New Features
148
155
  * The #tableish Proc can return Strings as well as Nokogiri nodes now. (Aslak Hellesøy)
149
156
 
150
- === Bugfixes
157
+ ### Bugfixes
151
158
  * Handle all types of URIs in "I should be on ..." steps. (#5 Andrew D. Smith)
152
159
 
153
- == 0.2.2 2009-12-21
160
+ ## [v0.2.2](https://github.com/cucumber/cucumber-rails/compare/v0.2.1...v0.2.2)
154
161
 
155
- === Bugfixes
162
+ ### Bugfixes
156
163
  * Fix bad link in gemspec. (Aslak Hellesøy)
157
164
  * Unified file attaching step names. (Jiří Zajpt)
158
165
  * Fix typos in variable names in several step definitions. (Jiří Zajpt)
159
166
  * cucumber.rake finds the wrong vendored cucumber when a plugin name starts with "cucumber" (#4 James Herdman, Paco Benavent, Aslak Hellesøy)
160
167
 
161
- === New features
168
+ ### New features
162
169
  * Czech translations. (Jiří Zajpt)
163
170
 
164
- == 0.2.1 2009-12-15
171
+ ## [v0.2.1](https://github.com/cucumber/cucumber-rails/compare/v0.2.0...v0.2.1)
165
172
 
166
173
  Small bugfix release
167
174
 
168
- === Bugfixes
175
+ ### Bugfixes
169
176
  * Made sure database_cleaner is always set up as a dependency in config/environments/cucumber.rb. (Aslak Hellesøy)
170
177
 
171
- == 0.2.0 2009-12-14
172
178
 
173
179
  This is the first release of cucumber-rails, which was factored out of cucumber.
174
180
  We're calling it 0.2.0 just because we did some prereleases in the 0.1 series,
175
181
  and to celebrate that cucumber-rails now supports Capybara as an alternative to Webrat.
176
182
 
177
- === UPGRADING FROM A PREVIOUS CUCUMBER SETUP
183
+ ### UPGRADING FROM A PREVIOUS CUCUMBER SETUP
178
184
 
179
- 1) Remove your features/support/version_check.rb
180
- 2) Remove your features/step_definitions/webrat_steps.rb
185
+ 1. Remove your features/support/version_check.rb
186
+ 1. Remove your features/step_definitions/webrat_steps.rb
181
187
  If you have added your own custom step definitions to this file,
182
188
  put them in a different file under features/step_definitions
183
- 3) run "ruby script/generate cucumber --help" to see what options you have.
184
- 4) run "ruby script/generate cucumber" - plus whatever options you think fit for you.
189
+ 1. run "ruby script/generate cucumber --help" to see what options you have.
190
+ 1. run "ruby script/generate cucumber" - plus whatever options you think fit for you.
185
191
  Answer "n" (no) when asked to overwrite paths.rb.
186
192
  Answer "y" (yes) when asked to overwrite other files, but do "d" (diff) first.
187
193
  If you have edits in some of these files that you want to keep, store the diff
@@ -196,13 +202,13 @@ and to celebrate that cucumber-rails now supports Capybara as an alternative to
196
202
  If you have a Spork setup, see the end of this thread:
197
203
  http://groups.google.com/group/cukes/browse_thread/thread/475385cc26377215
198
204
 
199
- === New features
205
+ ### New features
200
206
  * Added an @emulate_rails_javascript tag that will emulate onclick with Capybara (Aslak Hellesøy, Rob Holland)
201
207
  * Added a smart config/cucumber.yml file that will rerun previously failing scenarios (Aslak Hellesøy)
202
208
  * Support for Capybara. Run "script/generate --capybara" if you want that. (Rob Holland, Aslak Hellesøy)
203
209
  * New #tableish method to extract table-like data from a HTML page. Pure Nokogiri/CSS3/XPath. (Aslak Hellesøy)
204
210
 
205
- === Bugfixes
211
+ ### Bugfixes
206
212
  * Webrat step "Then I should be on" should use request_uri instead of path for missing query string parameters (ZhangJinzhu)
207
213
  * Added MIME type parameter to attach file step definition (Felix Flores)
208
214
  * Added check when including ActiveSupport::Testing::SetupAndTeardown for older Rails versions (Jeremy Durham)
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ CUCUMBER_RAILS_VERSION = Gem::Specification.load(File.dirname(__FILE__) + '/cucumber-rails.gemspec').version.version
2
3
  require 'rubygems'
3
4
  require 'bundler/setup'
4
5
  Bundler::GemHelper.install_tasks
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'cucumber-rails'
6
- s.version = '1.0.0'
6
+ s.version = '1.0.1'
7
7
  s.authors = ["Aslak Hellesøy", "Dennis Blöte", "Rob Holland"]
8
8
  s.description = "Cucumber Generators and Runtime for Rails"
9
9
  s.summary = "#{s.name}-#{s.version}"
@@ -11,13 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.homepage = "http://cukes.info"
12
12
 
13
13
  s.add_dependency('cucumber', '~> 1.0.0')
14
- s.add_dependency('rack-test', '>= 0.5.7')
15
- s.add_dependency('nokogiri', '>= 1.4.4')
14
+ s.add_dependency('rack-test', '>= 0.6.0')
15
+ s.add_dependency('nokogiri', '>= 1.4.6')
16
16
  s.add_dependency('capybara', '>= 1.0.0')
17
17
  s.add_development_dependency('rails', '>= 3.1.0.rc4')
18
18
  s.add_development_dependency('rake', '>= 0.9.2')
19
19
  s.add_development_dependency('bundler', '>= 1.0.15')
20
- s.add_development_dependency('aruba', '>= 0.4.1')
20
+ s.add_development_dependency('aruba', '>= 0.4.3')
21
21
  s.add_development_dependency('sqlite3-ruby', '>= 1.3.3')
22
22
  s.add_development_dependency('rspec', '>= 2.6.0')
23
23
  s.add_development_dependency('rspec-rails', '>= 2.6.1')
@@ -29,16 +29,19 @@ Gem::Specification.new do |s|
29
29
 
30
30
  # Various Stuff that Rails 3.1 puts inside apps.
31
31
  s.add_development_dependency('turn', '>= 0.8.2')
32
- s.add_development_dependency('sass', '>= 3.1.1')
32
+ s.add_development_dependency('sass', '>= 3.1.3')
33
33
  s.add_development_dependency('coffee-script', '>= 2.2.0')
34
- s.add_development_dependency('uglifier', '>= 0.5.4')
35
- s.add_development_dependency('jquery-rails', '>= 1.0.9')
34
+ s.add_development_dependency('uglifier', '>= 1.0.0')
35
+ s.add_development_dependency('jquery-rails', '>= 1.0.12')
36
+
37
+ # For Documentation:
38
+ s.add_development_dependency('yard', '= 0.7.1')
39
+ s.add_development_dependency('rdiscount', '= 1.6.8')
40
+ s.add_development_dependency('bcat', '= 0.6.1')
36
41
 
37
42
  s.rubygems_version = ">= 1.6.1"
38
43
  s.files = `git ls-files`.split("\n")
39
44
  s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
40
45
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
41
- s.extra_rdoc_files = ["LICENSE", "README.md", "History.txt"]
42
- s.rdoc_options = ["--charset=UTF-8"]
43
46
  s.require_path = "lib"
44
47
  end
@@ -0,0 +1,17 @@
1
+ require 'yard'
2
+ require 'yard/rake/yardoc_task'
3
+
4
+ YARD::Templates::Engine.register_template_path(File.expand_path(File.join(File.dirname(__FILE__), 'yard')))
5
+ YARD::Rake::YardocTask.new(:yard) do |t|
6
+ t.options = %w{--no-private --title Cucumber-Rails}
7
+ t.files = %w{lib - README.md History.md LICENSE}
8
+ end
9
+
10
+ desc "Push yardoc to http://cukes.info/cucumber-rails/api/#{CUCUMBER_RAILS_VERSION}"
11
+ task :push_yard => :yard do
12
+ sh("tar czf tmp/api-#{CUCUMBER_RAILS_VERSION}.tgz -C doc .")
13
+ sh("scp tmp/api-#{CUCUMBER_RAILS_VERSION}.tgz cukes.info:/var/www/cucumber-rails/api")
14
+ sh("ssh cukes.info 'cd /var/www/cucumber-rails/api && rm -rf #{CUCUMBER_RAILS_VERSION} && mkdir #{CUCUMBER_RAILS_VERSION} && tar xzf api-#{CUCUMBER_RAILS_VERSION}.tgz -C #{CUCUMBER_RAILS_VERSION} && rm -f latest && ln -s #{CUCUMBER_RAILS_VERSION} latest'")
15
+ end
16
+
17
+ task :release => :push_yard
@@ -0,0 +1,5 @@
1
+ <div id="footer">
2
+ Generated on <%= Time.now.strftime("%c") %> by
3
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4
+ <%= YARD::VERSION %> (ruby-<%= RUBY_VERSION %>).
5
+ </div>
@@ -0,0 +1 @@
1
+ <%= yieldall %>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <%= erb(:headers) %>
6
+ </head>
7
+ <body>
8
+ <script type="text/javascript" charset="utf-8">
9
+ if (window.top.frames.main) document.body.className = 'frames';
10
+ </script>
11
+
12
+ <div id="header">
13
+ <%= erb(:logo) %>
14
+ <%= erb(:breadcrumb) %>
15
+ <%= erb(:search) %>
16
+ <div class="clear"></div>
17
+ </div>
18
+
19
+ <iframe id="search_frame"></iframe>
20
+
21
+ <div id="content"><%= yieldall %></div>
22
+
23
+ <%= erb(:footer) %>
24
+ </body>
25
+ </html>
@@ -0,0 +1 @@
1
+ <h3><img src="<%= url_for('images/bubble_32x32.png') %>"></img> Cucumber-Rails <%= CUCUMBER_RAILS_VERSION %></h3>
@@ -0,0 +1,4 @@
1
+ def init
2
+ super
3
+ options[:serializer].serialize('/images/bubble_32x32.png', IO.read(File.dirname(__FILE__) + '/bubble_32x32.png'))
4
+ end
@@ -17,6 +17,10 @@ Given /^I have created a new Rails 3 app "([^"]*)" with cucumber\-rails support$
17
17
  """
18
18
  And I successfully run `bundle exec rails generate cucumber:install`
19
19
  }
20
+ if(ENV['ARUBA_REPORT_DIR'])
21
+ @aruba_report_start = Time.new
22
+ sleep(1)
23
+ end
20
24
  end
21
25
 
22
26
  Given /^a project without ActiveRecord$/ do
@@ -58,6 +62,10 @@ Given /^a project without ActiveRecord$/ do
58
62
  """
59
63
  And I remove the file "config/database.yml"
60
64
  }
65
+ if(ENV['ARUBA_REPORT_DIR'])
66
+ @aruba_report_start = Time.new
67
+ sleep(1)
68
+ end
61
69
  end
62
70
 
63
71
  And /^a cukes resource$/ do
@@ -8,3 +8,30 @@ Before do
8
8
  @aruba_timeout_seconds = 120 # A long time needed some times
9
9
  unset_bundler_env_vars
10
10
  end
11
+
12
+ if(ENV['ARUBA_REPORT_DIR'])
13
+ # Override reporting behaviour so we don't document all files, only the ones
14
+ # that have been created after @aruba_report_start (a Time object). This is
15
+ # given a value after the Rails app is generated (see cucumber_rails_steps.rb)
16
+ module Aruba
17
+ module Reporting
18
+ def children(dir)
19
+ children = Dir["#{dir}/*"].sort
20
+
21
+ # include
22
+ children = children.select do |child|
23
+ File.directory?(child) ||
24
+ (@aruba_report_start && File.stat(child).mtime > @aruba_report_start)
25
+ end
26
+
27
+ # exclude
28
+ children = children.reject do |child|
29
+ child =~ /Gemfile/ ||
30
+ child =~ /\.log$/
31
+ end
32
+
33
+ children
34
+ end
35
+ end
36
+ end
37
+ end
@@ -1,5 +1,20 @@
1
1
  require 'rails'
2
- require 'cucumber/rails3'
2
+ require 'cucumber/rails/application'
3
+ ENV["RAILS_ENV"] ||= "test"
4
+ ENV["RAILS_ROOT"] ||= File.expand_path(File.dirname(caller.detect{|f| f =~ /\/env\.rb:/}) + '/../..')
5
+ require File.expand_path(ENV["RAILS_ROOT"] + '/config/environment')
6
+ require 'cucumber/rails/action_controller'
7
+
8
+ if defined?(ActiveRecord::Base)
9
+ require 'rails/test_help'
10
+ else
11
+ require 'action_dispatch/testing/test_process'
12
+ require 'action_dispatch/testing/integration'
13
+ end
14
+
15
+ if !Rails.application.config.cache_classes
16
+ warn "WARNING: You have set Rails' config.cache_classes to false (most likely in config/environments/cucumber.rb). This setting is known to cause problems with database transactions. Set config.cache_classes to true if you want to use transactions. For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165."
17
+ end
3
18
 
4
19
  require 'cucumber/rails/world'
5
20
  require 'cucumber/rails/hooks'
@@ -1,5 +1,12 @@
1
1
  if defined?(ActiveRecord::Base)
2
- require 'cucumber/rails3/active_record'
2
+ class ActiveRecord::Base
3
+ mattr_accessor :shared_connection
4
+ @@shared_connection = nil
5
+
6
+ def self.connection
7
+ @@shared_connection || retrieve_connection
8
+ end
9
+ end
3
10
 
4
11
  Before('@javascript') do
5
12
  # Forces all threads to share the same connection. This works on
@@ -1,11 +1,11 @@
1
1
  begin
2
2
  require 'database_cleaner'
3
3
 
4
- Before do
4
+ Before('~@no-database-cleaner') do
5
5
  DatabaseCleaner.start
6
6
  end
7
7
 
8
- After do
8
+ After('~@no-database-cleaner') do
9
9
  DatabaseCleaner.clean
10
10
  end
11
11
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cucumber-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Aslak Helles\xC3\xB8y"
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-06-20 00:00:00 Z
15
+ date: 2011-06-25 00:00:00 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: cucumber
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: 0.5.7
35
+ version: 0.6.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: *id002
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.4.4
46
+ version: 1.4.6
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: *id003
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 0.4.1
101
+ version: 0.4.3
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: *id008
@@ -197,7 +197,7 @@ dependencies:
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: 3.1.1
200
+ version: 3.1.3
201
201
  type: :development
202
202
  prerelease: false
203
203
  version_requirements: *id017
@@ -219,7 +219,7 @@ dependencies:
219
219
  requirements:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
- version: 0.5.4
222
+ version: 1.0.0
223
223
  type: :development
224
224
  prerelease: false
225
225
  version_requirements: *id019
@@ -230,27 +230,58 @@ dependencies:
230
230
  requirements:
231
231
  - - ">="
232
232
  - !ruby/object:Gem::Version
233
- version: 1.0.9
233
+ version: 1.0.12
234
234
  type: :development
235
235
  prerelease: false
236
236
  version_requirements: *id020
237
+ - !ruby/object:Gem::Dependency
238
+ name: yard
239
+ requirement: &id021 !ruby/object:Gem::Requirement
240
+ none: false
241
+ requirements:
242
+ - - "="
243
+ - !ruby/object:Gem::Version
244
+ version: 0.7.1
245
+ type: :development
246
+ prerelease: false
247
+ version_requirements: *id021
248
+ - !ruby/object:Gem::Dependency
249
+ name: rdiscount
250
+ requirement: &id022 !ruby/object:Gem::Requirement
251
+ none: false
252
+ requirements:
253
+ - - "="
254
+ - !ruby/object:Gem::Version
255
+ version: 1.6.8
256
+ type: :development
257
+ prerelease: false
258
+ version_requirements: *id022
259
+ - !ruby/object:Gem::Dependency
260
+ name: bcat
261
+ requirement: &id023 !ruby/object:Gem::Requirement
262
+ none: false
263
+ requirements:
264
+ - - "="
265
+ - !ruby/object:Gem::Version
266
+ version: 0.6.1
267
+ type: :development
268
+ prerelease: false
269
+ version_requirements: *id023
237
270
  description: Cucumber Generators and Runtime for Rails
238
271
  email: cukes@googlegroups.com
239
272
  executables: []
240
273
 
241
274
  extensions: []
242
275
 
243
- extra_rdoc_files:
244
- - LICENSE
245
- - README.md
246
- - History.txt
276
+ extra_rdoc_files: []
277
+
247
278
  files:
248
279
  - .gitignore
249
280
  - .rspec
250
281
  - .rvmrc
251
282
  - Gemfile
252
283
  - Gemfile.lock
253
- - History.txt
284
+ - History.md
254
285
  - LICENSE
255
286
  - README.md
256
287
  - Rakefile
@@ -259,6 +290,13 @@ files:
259
290
  - cucumber-rails.gemspec
260
291
  - dev_tasks/cucumber.rake
261
292
  - dev_tasks/rspec.rake
293
+ - dev_tasks/yard.rake
294
+ - dev_tasks/yard/default/layout/html/bubble_32x32.png
295
+ - dev_tasks/yard/default/layout/html/footer.erb
296
+ - dev_tasks/yard/default/layout/html/index.erb
297
+ - dev_tasks/yard/default/layout/html/layout.erb
298
+ - dev_tasks/yard/default/layout/html/logo.erb
299
+ - dev_tasks/yard/default/layout/html/setup.rb
262
300
  - features/allow_rescue.feature
263
301
  - features/capybara_javascript_drivers.feature
264
302
  - features/database_cleaner.feature
@@ -278,6 +316,8 @@ files:
278
316
  - features/support/env.rb
279
317
  - features/test_unit.feature
280
318
  - lib/cucumber/rails.rb
319
+ - lib/cucumber/rails/action_controller.rb
320
+ - lib/cucumber/rails/application.rb
281
321
  - lib/cucumber/rails/capybara.rb
282
322
  - lib/cucumber/rails/capybara/javascript_emulation.rb
283
323
  - lib/cucumber/rails/capybara/select_dates_and_times.rb
@@ -288,10 +328,6 @@ files:
288
328
  - lib/cucumber/rails/hooks/mail.rb
289
329
  - lib/cucumber/rails/rspec.rb
290
330
  - lib/cucumber/rails/world.rb
291
- - lib/cucumber/rails3.rb
292
- - lib/cucumber/rails3/action_controller.rb
293
- - lib/cucumber/rails3/active_record.rb
294
- - lib/cucumber/rails3/application.rb
295
331
  - lib/cucumber/web/tableish.rb
296
332
  - lib/generators/cucumber/feature/USAGE
297
333
  - lib/generators/cucumber/feature/feature_generator.rb
@@ -327,8 +363,8 @@ homepage: http://cukes.info
327
363
  licenses: []
328
364
 
329
365
  post_install_message:
330
- rdoc_options:
331
- - --charset=UTF-8
366
+ rdoc_options: []
367
+
332
368
  require_paths:
333
369
  - lib
334
370
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -336,7 +372,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
372
  requirements:
337
373
  - - ">="
338
374
  - !ruby/object:Gem::Version
339
- hash: -421986760782023532
375
+ hash: 3340904103093087338
340
376
  segments:
341
377
  - 0
342
378
  version: "0"
@@ -345,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
345
381
  requirements:
346
382
  - - ">="
347
383
  - !ruby/object:Gem::Version
348
- hash: -421986760782023532
384
+ hash: 3340904103093087338
349
385
  segments:
350
386
  - 0
351
387
  version: "0"
@@ -355,7 +391,7 @@ rubyforge_project:
355
391
  rubygems_version: 1.8.5
356
392
  signing_key:
357
393
  specification_version: 3
358
- summary: cucumber-rails-1.0.0
394
+ summary: cucumber-rails-1.0.1
359
395
  test_files:
360
396
  - features/allow_rescue.feature
361
397
  - features/capybara_javascript_drivers.feature
@@ -1,16 +0,0 @@
1
- require 'cucumber/rails3/application'
2
- ENV["RAILS_ENV"] ||= "test"
3
- ENV["RAILS_ROOT"] ||= File.expand_path(File.dirname(caller.detect{|f| f =~ /\/env\.rb:/}) + '/../..')
4
- require File.expand_path(ENV["RAILS_ROOT"] + '/config/environment')
5
- require 'cucumber/rails3/action_controller'
6
-
7
- if defined?(ActiveRecord::Base)
8
- require 'rails/test_help'
9
- else
10
- require 'action_dispatch/testing/test_process'
11
- require 'action_dispatch/testing/integration'
12
- end
13
-
14
- if !Rails.application.config.cache_classes
15
- warn "WARNING: You have set Rails' config.cache_classes to false (most likely in config/environments/cucumber.rb). This setting is known to cause problems with database transactions. Set config.cache_classes to true if you want to use transactions. For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165."
16
- end
@@ -1,8 +0,0 @@
1
- class ActiveRecord::Base
2
- mattr_accessor :shared_connection
3
- @@shared_connection = nil
4
-
5
- def self.connection
6
- @@shared_connection || retrieve_connection
7
- end
8
- end