cucumber 0.8.4 → 0.8.5
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.
- data/History.txt +6 -0
- data/Rakefile +1 -1
- data/VERSION.yml +1 -1
- data/cucumber.gemspec +10 -13
- data/examples/{webrat → rspec_doubles}/Rakefile +0 -0
- data/features/rake_task.feature +1 -1
- data/fixtures/tickets/features/gherkin_67.feature +12 -0
- data/fixtures/tickets/features/gherkin_68.feature +4 -0
- data/fixtures/tickets/features/step_definitons/tickets_steps.rb +7 -0
- data/gem_tasks/examples.rake +1 -0
- data/lib/cucumber/core_ext/proc.rb +6 -2
- data/lib/cucumber/rake/task.rb +5 -1
- metadata +11 -14
- data/examples/webrat/features/search.feature +0 -12
- data/examples/webrat/features/step_definitions/kvasir_steps.rb +0 -14
- data/examples/webrat/features/support/env.rb +0 -17
data/History.txt
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
== 0.8.5 (2010-07-14)
|
|
2
|
+
|
|
3
|
+
=== Bugfixes
|
|
4
|
+
* Location of stepdefs outside the project (in gems) are reported incorrectly. (#583 Aslak Hellesøy)
|
|
5
|
+
* Cucumber::Rake::Task uses 'bundle exec' when using bundler (#626 John Firebaugh)
|
|
6
|
+
|
|
1
7
|
== 0.8.4 (2010-07-12)
|
|
2
8
|
|
|
3
9
|
=== Bugfixes
|
data/Rakefile
CHANGED
|
@@ -16,7 +16,7 @@ begin
|
|
|
16
16
|
gem.homepage = "http://cukes.info"
|
|
17
17
|
gem.authors = ["Aslak Hellesøy"]
|
|
18
18
|
|
|
19
|
-
gem.add_dependency 'gherkin', '~> 2.1.
|
|
19
|
+
gem.add_dependency 'gherkin', '~> 2.1.4'
|
|
20
20
|
gem.add_dependency 'term-ansicolor', '~> 1.0.4'
|
|
21
21
|
gem.add_dependency 'builder', '~> 2.1.2'
|
|
22
22
|
gem.add_dependency 'diff-lcs', '~> 1.1.2'
|
data/VERSION.yml
CHANGED
data/cucumber.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{cucumber}
|
|
8
|
-
s.version = "0.8.
|
|
8
|
+
s.version = "0.8.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Aslak Helles\303\270y"]
|
|
12
|
-
s.date = %q{2010-07-
|
|
12
|
+
s.date = %q{2010-07-14}
|
|
13
13
|
s.default_executable = %q{cucumber}
|
|
14
14
|
s.description = %q{Behaviour Driven Development with elegance and joy}
|
|
15
15
|
s.email = %q{cukes@googlegroups.com}
|
|
@@ -237,6 +237,7 @@ Gem::Specification.new do |s|
|
|
|
237
237
|
"examples/ramaze/features/support/env.rb",
|
|
238
238
|
"examples/ramaze/layout/default.html.erb",
|
|
239
239
|
"examples/ramaze/view/index.html.erb",
|
|
240
|
+
"examples/rspec_doubles/Rakefile",
|
|
240
241
|
"examples/rspec_doubles/features/mocking.feature",
|
|
241
242
|
"examples/rspec_doubles/features/step_definitions/calvin_steps.rb",
|
|
242
243
|
"examples/rspec_doubles/features/support/env.rb",
|
|
@@ -277,10 +278,6 @@ Gem::Specification.new do |s|
|
|
|
277
278
|
"examples/watir/features/step_definitions/search_steps.rb",
|
|
278
279
|
"examples/watir/features/support/env.rb",
|
|
279
280
|
"examples/watir/features/support/screenshots.rb",
|
|
280
|
-
"examples/webrat/Rakefile",
|
|
281
|
-
"examples/webrat/features/search.feature",
|
|
282
|
-
"examples/webrat/features/step_definitions/kvasir_steps.rb",
|
|
283
|
-
"examples/webrat/features/support/env.rb",
|
|
284
281
|
"features/announce.feature",
|
|
285
282
|
"features/around_hooks.feature",
|
|
286
283
|
"features/background.feature",
|
|
@@ -396,6 +393,8 @@ Gem::Specification.new do |s|
|
|
|
396
393
|
"fixtures/tickets/features/301/filter_background_tagged_hooks_steps.rb",
|
|
397
394
|
"fixtures/tickets/features/306/only_background.feature",
|
|
398
395
|
"fixtures/tickets/features/around_timeout.feature",
|
|
396
|
+
"fixtures/tickets/features/gherkin_67.feature",
|
|
397
|
+
"fixtures/tickets/features/gherkin_68.feature",
|
|
399
398
|
"fixtures/tickets/features/half_manual.feature",
|
|
400
399
|
"fixtures/tickets/features/lib/eatting_machine.rb",
|
|
401
400
|
"fixtures/tickets/features/lib/pantry.rb",
|
|
@@ -559,7 +558,7 @@ Gem::Specification.new do |s|
|
|
|
559
558
|
|
|
560
559
|
(::) U P G R A D I N G (::)
|
|
561
560
|
|
|
562
|
-
Thank you for installing cucumber-0.8.
|
|
561
|
+
Thank you for installing cucumber-0.8.5.
|
|
563
562
|
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
|
564
563
|
for important information about this release. Happy cuking!
|
|
565
564
|
|
|
@@ -707,9 +706,7 @@ for important information about this release. Happy cuking!
|
|
|
707
706
|
"examples/test_unit/features/step_definitions/test_unit_steps.rb",
|
|
708
707
|
"examples/watir/features/step_definitions/search_steps.rb",
|
|
709
708
|
"examples/watir/features/support/env.rb",
|
|
710
|
-
"examples/watir/features/support/screenshots.rb"
|
|
711
|
-
"examples/webrat/features/step_definitions/kvasir_steps.rb",
|
|
712
|
-
"examples/webrat/features/support/env.rb"
|
|
709
|
+
"examples/watir/features/support/screenshots.rb"
|
|
713
710
|
]
|
|
714
711
|
|
|
715
712
|
if s.respond_to? :specification_version then
|
|
@@ -717,7 +714,7 @@ for important information about this release. Happy cuking!
|
|
|
717
714
|
s.specification_version = 3
|
|
718
715
|
|
|
719
716
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
720
|
-
s.add_runtime_dependency(%q<gherkin>, ["~> 2.1.
|
|
717
|
+
s.add_runtime_dependency(%q<gherkin>, ["~> 2.1.4"])
|
|
721
718
|
s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
|
|
722
719
|
s.add_runtime_dependency(%q<builder>, ["~> 2.1.2"])
|
|
723
720
|
s.add_runtime_dependency(%q<diff-lcs>, ["~> 1.1.2"])
|
|
@@ -729,7 +726,7 @@ for important information about this release. Happy cuking!
|
|
|
729
726
|
s.add_development_dependency(%q<syntax>, ["~> 1.0.0"])
|
|
730
727
|
s.add_development_dependency(%q<spork>, ["~> 0.8.4"])
|
|
731
728
|
else
|
|
732
|
-
s.add_dependency(%q<gherkin>, ["~> 2.1.
|
|
729
|
+
s.add_dependency(%q<gherkin>, ["~> 2.1.4"])
|
|
733
730
|
s.add_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
|
|
734
731
|
s.add_dependency(%q<builder>, ["~> 2.1.2"])
|
|
735
732
|
s.add_dependency(%q<diff-lcs>, ["~> 1.1.2"])
|
|
@@ -742,7 +739,7 @@ for important information about this release. Happy cuking!
|
|
|
742
739
|
s.add_dependency(%q<spork>, ["~> 0.8.4"])
|
|
743
740
|
end
|
|
744
741
|
else
|
|
745
|
-
s.add_dependency(%q<gherkin>, ["~> 2.1.
|
|
742
|
+
s.add_dependency(%q<gherkin>, ["~> 2.1.4"])
|
|
746
743
|
s.add_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
|
|
747
744
|
s.add_dependency(%q<builder>, ["~> 2.1.2"])
|
|
748
745
|
s.add_dependency(%q<diff-lcs>, ["~> 1.1.2"])
|
|
File without changes
|
data/features/rake_task.feature
CHANGED
|
@@ -57,6 +57,13 @@ Given /^I have a pending step$/ do
|
|
|
57
57
|
pending
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
Given /^I have (\d+) cukes in my belly$/ do |arg1|
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
Given /^I call empty steps$/ do
|
|
64
|
+
steps ""
|
|
65
|
+
end
|
|
66
|
+
|
|
60
67
|
When /^I run this feature with the progress format$/ do
|
|
61
68
|
pending
|
|
62
69
|
end
|
data/gem_tasks/examples.rake
CHANGED
|
@@ -4,6 +4,7 @@ task :examples do
|
|
|
4
4
|
next if !File.directory?(example_dir) || %w{examples/i18n examples/python examples/ruby2python}.index(example_dir)
|
|
5
5
|
puts "Running #{example_dir}"
|
|
6
6
|
Dir.chdir(example_dir) do
|
|
7
|
+
raise "No Rakefile in #{Dir.pwd}" unless File.file?('Rakefile')
|
|
7
8
|
sh "rake cucumber"
|
|
8
9
|
end
|
|
9
10
|
end
|
|
@@ -14,8 +14,12 @@ class Proc #:nodoc:
|
|
|
14
14
|
def file_colon_line
|
|
15
15
|
path, line = *to_s.match(PROC_PATTERN)[1..2]
|
|
16
16
|
path = File.expand_path(path)
|
|
17
|
-
pwd = Dir.pwd
|
|
18
|
-
|
|
17
|
+
pwd = File.expand_path(Dir.pwd)
|
|
18
|
+
if path.index(pwd)
|
|
19
|
+
path = path[pwd.length+1..-1]
|
|
20
|
+
elsif path =~ /.*\/gems\/(.*\.rb)$/
|
|
21
|
+
path = $1
|
|
22
|
+
end
|
|
19
23
|
"#{path}:#{line}"
|
|
20
24
|
end
|
|
21
25
|
else
|
data/lib/cucumber/rake/task.rb
CHANGED
|
@@ -64,8 +64,12 @@ module Cucumber
|
|
|
64
64
|
['"%s"' % cucumber_bin]
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
def runner
|
|
68
|
+
File.exist?("./Gemfile") ? ["bundle", "exec", RUBY] : [RUBY]
|
|
69
|
+
end
|
|
70
|
+
|
|
67
71
|
def run
|
|
68
|
-
|
|
72
|
+
sh((runner + args).join(" "))
|
|
69
73
|
end
|
|
70
74
|
end
|
|
71
75
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cucumber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 53
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.8.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "Aslak Helles\xC3\xB8y"
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-07-
|
|
18
|
+
date: 2010-07-14 00:00:00 +02:00
|
|
19
19
|
default_executable: cucumber
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -26,12 +26,12 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ~>
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
hash:
|
|
29
|
+
hash: 3
|
|
30
30
|
segments:
|
|
31
31
|
- 2
|
|
32
32
|
- 1
|
|
33
|
-
-
|
|
34
|
-
version: 2.1.
|
|
33
|
+
- 4
|
|
34
|
+
version: 2.1.4
|
|
35
35
|
type: :runtime
|
|
36
36
|
version_requirements: *id001
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
@@ -424,6 +424,7 @@ files:
|
|
|
424
424
|
- examples/ramaze/features/support/env.rb
|
|
425
425
|
- examples/ramaze/layout/default.html.erb
|
|
426
426
|
- examples/ramaze/view/index.html.erb
|
|
427
|
+
- examples/rspec_doubles/Rakefile
|
|
427
428
|
- examples/rspec_doubles/features/mocking.feature
|
|
428
429
|
- examples/rspec_doubles/features/step_definitions/calvin_steps.rb
|
|
429
430
|
- examples/rspec_doubles/features/support/env.rb
|
|
@@ -464,10 +465,6 @@ files:
|
|
|
464
465
|
- examples/watir/features/step_definitions/search_steps.rb
|
|
465
466
|
- examples/watir/features/support/env.rb
|
|
466
467
|
- examples/watir/features/support/screenshots.rb
|
|
467
|
-
- examples/webrat/Rakefile
|
|
468
|
-
- examples/webrat/features/search.feature
|
|
469
|
-
- examples/webrat/features/step_definitions/kvasir_steps.rb
|
|
470
|
-
- examples/webrat/features/support/env.rb
|
|
471
468
|
- features/announce.feature
|
|
472
469
|
- features/around_hooks.feature
|
|
473
470
|
- features/background.feature
|
|
@@ -583,6 +580,8 @@ files:
|
|
|
583
580
|
- fixtures/tickets/features/301/filter_background_tagged_hooks_steps.rb
|
|
584
581
|
- fixtures/tickets/features/306/only_background.feature
|
|
585
582
|
- fixtures/tickets/features/around_timeout.feature
|
|
583
|
+
- fixtures/tickets/features/gherkin_67.feature
|
|
584
|
+
- fixtures/tickets/features/gherkin_68.feature
|
|
586
585
|
- fixtures/tickets/features/half_manual.feature
|
|
587
586
|
- fixtures/tickets/features/lib/eatting_machine.rb
|
|
588
587
|
- fixtures/tickets/features/lib/pantry.rb
|
|
@@ -749,7 +748,7 @@ post_install_message: |+
|
|
|
749
748
|
|
|
750
749
|
(::) U P G R A D I N G (::)
|
|
751
750
|
|
|
752
|
-
Thank you for installing cucumber-0.8.
|
|
751
|
+
Thank you for installing cucumber-0.8.5.
|
|
753
752
|
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
|
754
753
|
for important information about this release. Happy cuking!
|
|
755
754
|
|
|
@@ -922,5 +921,3 @@ test_files:
|
|
|
922
921
|
- examples/watir/features/step_definitions/search_steps.rb
|
|
923
922
|
- examples/watir/features/support/env.rb
|
|
924
923
|
- examples/watir/features/support/screenshots.rb
|
|
925
|
-
- examples/webrat/features/step_definitions/kvasir_steps.rb
|
|
926
|
-
- examples/webrat/features/support/env.rb
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Feature: Search
|
|
2
|
-
In order to learn more
|
|
3
|
-
As an information seeker
|
|
4
|
-
I want to find more information
|
|
5
|
-
|
|
6
|
-
Scenario: Find what I'm looking for
|
|
7
|
-
Given I am on the Kvasir search page
|
|
8
|
-
When I search for "cucumber github"
|
|
9
|
-
Then I should see
|
|
10
|
-
"""
|
|
11
|
-
GitHub
|
|
12
|
-
"""
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Google is too hard to script with Mechanize
|
|
2
|
-
# Using a Norewgian search engine instead :-)
|
|
3
|
-
Given /^I am on the Kvasir search page$/ do
|
|
4
|
-
visit('http://www.kvasir.no/')
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
When /^I search for "([^"]*)"$/ do |query|
|
|
8
|
-
fill_in('q', :with => query)
|
|
9
|
-
click_button('sokeKnapp')
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
Then /^I should see$/ do |text|
|
|
13
|
-
response_body.should contain(text)
|
|
14
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require 'webrat'
|
|
2
|
-
require 'rspec'
|
|
3
|
-
|
|
4
|
-
Webrat.configure do |config|
|
|
5
|
-
config.mode = :mechanize
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
class WebratWorld
|
|
9
|
-
include RSpec::Matchers
|
|
10
|
-
include Webrat::Methods
|
|
11
|
-
include Webrat::Matchers
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
World do
|
|
15
|
-
WebratWorld.new
|
|
16
|
-
end
|
|
17
|
-
|