Skip to content

Commit

Permalink
Fix [cucumber#137 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan del Strother authored and aslakhellesoy committed Jan 25, 2009
1 parent 54ce9a2 commit 6784376
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 11 additions & 8 deletions History.txt
Expand Up @@ -57,20 +57,23 @@ Scenario Outlines, the rich command line, the nice output format and everything
pure Ruby users have been enjoying for a while.

== Bugfixes
* Overeager "rescue LoadError" hides lots of errors (#137 Jonathan del Strother)
* Pending steps in > steps called from steps (#65 Aslak Hellesøy)

=== New features
* Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files.
* New --strict option exits with an error code if there are undefined or pending steps.
* Filtering with --tags. If you put @various @tags on your features and scenarios, --tags lets you run a subset of them.
* Call multiline steps from other steps (#144 Aslak Hellesøy)
* Run cucumber with --autoformat DIR to reformat (pretty print) all of your feature files. (Aslak Hellesøy)
* New --strict option exits with an error code if there are undefined or pending steps. (Aslak Hellesøy)
* Filtering with --tags. If you put @various @tags on your features and scenarios,
--tags lets you run a subset of them. (Aslak Hellesøy)
* Given, When, Then are automatically aliased to current language.
Ruby 1.8 doesn't allow non-ascii method names in the source, so unless you're on 1.9
you will have to use Given, When, Then or set up your own aliases. Here is Norwegian:
Cucumber.alias_steps(%w{Naar Saa}) # Når, Så already aliased, but can't be called.
* Run cucumber --language help to see all supported languages.
* Run cucumber --language LANG help to see keywords for a given language.
* Multiline arguments (tables and """ strings) are printed in the output
* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime.
Cucumber.alias_steps(%w{Naar Saa}) # Når, Så already aliased, but can't be called. (Aslak Hellesøy)
* Run cucumber --language help to see all supported languages. (Aslak Hellesøy)
* Run cucumber --language LANG help to see keywords for a given language. (Aslak Hellesøy)
* Multiline arguments (tables and """ strings) are printed in the output. (Aslak Hellesøy)
* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime. (Aslak Hellesøy)

=== Removed features
* "GivenScenario" is gone. Instead you can call Steps from Steps, or wait for "Background (#153)"
Expand Down
3 changes: 2 additions & 1 deletion rails_generators/cucumber/templates/cucumber
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
begin
load File.expand_path(File.dirname(__FILE__) + "/../vendor/plugins/cucumber/bin/cucumber")
rescue LoadError
rescue LoadError => e
raise unless e.to_s =~ /cucumber/
require "rubygems"
load File.join(Gem.bindir, "cucumber")
end

0 comments on commit 6784376

Please sign in to comment.