cucumber-rails 0.5.0.beta1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,9 +1,19 @@
1
- == 0.5.0.beta1
1
+ == 0.5.0 2011-05-17
2
2
 
3
+ === Bugfixes
4
+ * undefined method `add_assertion' for nil:NilClass (#96, #97, #98 Aslak Hellesøy)
5
+ * Capybara name error from env.rb (#125 Aslak Hellesøy)
6
+ * Fixed date-localization bug (#138 Michael Opitz)
7
+
8
+ == 0.5.0.beta1 2011-05-08
9
+
10
+ === Removed features
3
11
  * Dropped support for Rails 2 (Aslak Hellesøy)
4
12
  * Dropped support for Webrat (Aslak Hellesøy)
5
13
  * Removed database cleaner strategy overrides (#134 Daniel Morrison, Daniel Duvall)
6
- * Upgrade to Capybara 1.0.0.beta1 or newer (#130 Simon Menke, Klaus Hartl, Aslak Hellesøy)
14
+
15
+ === Improvements
16
+ * Upgrade to Capybara 1.0.0.beta1 or newer (#129, #130 Simon Menke, Klaus Hartl, Aslak Hellesøy)
7
17
  * Generated paths.rb cleanup (#133 Tim Pope)
8
18
  * Allow css pseudo-classes in scopers (#122 twalpole)
9
19
 
data/README.md CHANGED
@@ -22,7 +22,7 @@ Then install it by running:
22
22
 
23
23
  Learn about the various options:
24
24
 
25
- ruby rails generate cucumber:install --help
25
+ rails generate cucumber:install --help
26
26
 
27
27
  Finally, bootstrap your Rails app, for example:
28
28
 
@@ -35,8 +35,8 @@ Cucumber features by hand once you get the hang of it.
35
35
 
36
36
  Example:
37
37
 
38
- ruby rails generate cucumber:feature post title:string body:text published:boolean
39
- ruby rails generate scaffold post title:string body:text published:boolean
38
+ rails generate cucumber:feature post title:string body:text published:boolean
39
+ rails generate scaffold post title:string body:text published:boolean
40
40
  rake db:migrate
41
41
  rake cucumber
42
42
 
@@ -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 = '0.5.0.beta1'
6
+ s.version = '0.5.0'
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}"
@@ -14,12 +14,12 @@ Gem::Specification.new do |s|
14
14
  s.add_dependency('rack-test', '>= 0.5.7')
15
15
  s.add_dependency('nokogiri', '>= 1.4.4')
16
16
  s.add_dependency('capybara', '>= 1.0.0.beta1')
17
- s.add_development_dependency('bundler', '>= 1.0.12')
17
+ s.add_development_dependency('bundler', '>= 1.0.13')
18
18
  s.add_development_dependency('aruba', '>= 0.3.6')
19
19
  s.add_development_dependency('rails', '>= 3.0.7')
20
20
  s.add_development_dependency('sqlite3-ruby', '>= 1.3.3')
21
- s.add_development_dependency('rspec', '>= 2.6.0.rc6')
22
- s.add_development_dependency('rspec-rails', '>= 2.2.0')
21
+ s.add_development_dependency('rspec', '>= 2.6.0')
22
+ s.add_development_dependency('rspec-rails', '>= 2.6.0')
23
23
  s.add_development_dependency('factory_girl', '>= 2.0.0.beta2')
24
24
  s.add_development_dependency('database_cleaner', '>= 0.6.7')
25
25
  s.add_development_dependency('mongoid', '>= 2.0.1')
@@ -0,0 +1,42 @@
1
+ Feature: Run with Test::Unit
2
+
3
+ Scenario: Delete a widget
4
+ Given I have created a new Rails 3 app "widgets" with cucumber-rails support
5
+ And I overwrite "Gemfile" with:
6
+ """
7
+ gem 'rails'
8
+ gem 'sqlite3'
9
+ gem "cucumber-rails", :group => :test, :path => "../../.."
10
+ gem "capybara", :group => :test
11
+ gem "database_cleaner", :group => :test
12
+ gem 'factory_girl', :group => :test
13
+
14
+ """
15
+ And I successfully run `rails generate scaffold widget name:string`
16
+ And I write to "features/f.feature" with:
17
+ """
18
+ Feature: Widget inventory
19
+ Scenario: Delete a widget
20
+ Given there is a widget named "wrench"
21
+ When I go to the widgets page
22
+ Then I should see "wrench"
23
+ """
24
+ And I write to "features/step_definitions/s.rb" with:
25
+ """
26
+ Given /^there is a widget named "([^"]*)"$/ do |name|
27
+ Factory(:widget, :name => name)
28
+ end
29
+ """
30
+ And I write to "features/support/factories.rb" with:
31
+ """
32
+ Factory.define :widget do |f|
33
+ f.name 'testwidget'
34
+ end
35
+ """
36
+ When I run `rake db:migrate cucumber`
37
+ Then it should pass with:
38
+ """
39
+ 1 scenario (1 passed)
40
+ 3 steps (3 passed)
41
+ """
42
+
@@ -7,7 +7,7 @@ module Cucumber
7
7
  base_dom_id = get_base_dom_id_from_label_tag(field)
8
8
 
9
9
  find(:xpath, "//select[@id='#{base_dom_id}_1i']").select(date.year.to_s)
10
- find(:xpath, "//select[@id='#{base_dom_id}_2i']").select(date.strftime('%B'))
10
+ find(:xpath, "//select[@id='#{base_dom_id}_2i']").select(I18n.l date, :format => '%B')
11
11
  find(:xpath, "//select[@id='#{base_dom_id}_3i']").select(date.day.to_s)
12
12
  end
13
13
 
@@ -1,3 +1,9 @@
1
+ begin
2
+ # Try to load it so we can assign @_result below if needed.
3
+ require 'test/unit/testresult'
4
+ rescue LoadError => ignore
5
+ end
6
+
1
7
  module Cucumber #:nodoc:
2
8
  module Rails #:nodoc:
3
9
  class World < ActionController::IntegrationTest #:nodoc:
@@ -1,3 +1,4 @@
1
+ require 'capybara'
1
2
  # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
2
3
  # order to ease the transition to Capybara we set the default here. If you'd
3
4
  # prefer to use XPath just remove this line and adjust any selectors in your
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-rails
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 0.5.0.beta1
4
+ prerelease:
5
+ version: 0.5.0
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-05-09 00:00:00 +01:00
15
+ date: 2011-05-17 00:00:00 +01:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.0.12
69
+ version: 1.0.13
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: *id005
@@ -110,7 +110,7 @@ dependencies:
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: 2.6.0.rc6
113
+ version: 2.6.0
114
114
  type: :development
115
115
  prerelease: false
116
116
  version_requirements: *id009
@@ -121,7 +121,7 @@ dependencies:
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 2.2.0
124
+ version: 2.6.0
125
125
  type: :development
126
126
  prerelease: false
127
127
  version_requirements: *id010
@@ -209,6 +209,7 @@ files:
209
209
  - features/select_dates.feature
210
210
  - features/step_definitions/cucumber_rails_steps.rb
211
211
  - features/support/env.rb
212
+ - features/test_unit.feature
212
213
  - lib/cucumber/rails.rb
213
214
  - lib/cucumber/rails/capybara.rb
214
215
  - lib/cucumber/rails/capybara/javascript_emulation.rb
@@ -268,23 +269,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
269
  requirements:
269
270
  - - ">="
270
271
  - !ruby/object:Gem::Version
271
- hash: 495067310381910486
272
+ hash: 3249523460490055111
272
273
  segments:
273
274
  - 0
274
275
  version: "0"
275
276
  required_rubygems_version: !ruby/object:Gem::Requirement
276
277
  none: false
277
278
  requirements:
278
- - - ">"
279
+ - - ">="
279
280
  - !ruby/object:Gem::Version
280
- version: 1.3.1
281
+ hash: 3249523460490055111
282
+ segments:
283
+ - 0
284
+ version: "0"
281
285
  requirements: []
282
286
 
283
287
  rubyforge_project:
284
288
  rubygems_version: 1.6.2
285
289
  signing_key:
286
290
  specification_version: 3
287
- summary: cucumber-rails-0.5.0.beta1
291
+ summary: cucumber-rails-0.5.0
288
292
  test_files:
289
293
  - features/allow_rescue.feature
290
294
  - features/capybara_javascript_drivers.feature
@@ -302,5 +306,6 @@ test_files:
302
306
  - features/select_dates.feature
303
307
  - features/step_definitions/cucumber_rails_steps.rb
304
308
  - features/support/env.rb
309
+ - features/test_unit.feature
305
310
  - spec/cucumber/web/tableish_spec.rb
306
311
  - spec/spec_helper.rb