Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

0.1.5 released

  • Loading branch information...
commit ca18ea96ba0e9cff5e3a7a89da3cc62e78b27fce 1 parent 584eb90
@ianwhite authored
View
6 History.txt
@@ -1,9 +1,10 @@
-== edge
+== 0.1.5
* API change
* CaptureModel, etc are now 'capture_model' methods
-* 2 major enhancements
+* 3 major enhancements
+ * Steps for asserting that <n> models exist, matching certain criteria
* Steps for asserting associations added to generated pickle steps
'Then the user should be in the post's commenters'
'Then the forum: "awesome" should be the 2nd post's forum'
@@ -13,6 +14,7 @@
* 1 minor enhancement
* predicate matching is less prone to step conflicts because we preload a
big list of all the predicate and column methods
+ * field values now handle booleans and numerics
== 0.1.4
View
2  README.rdoc
@@ -79,7 +79,7 @@ create mappings from english expressions to pickle model names
=== Regexps for us in your own steps
By default you get three regexps available in the main namespace for use
-in creating your own steps: *capture_model*, *capture_fields*, and *capture_plural_factory*
+in creating your own steps: *capture_model*, *capture_fields*, and others (see lib/pickle.rb)
(You can use any of the regexps that Pickle uses by using the Pickle.parser namespace, see
Pickle::Parser::Matchers for the methods available)
View
26 features/create_from_machinist.feature
@@ -13,29 +13,29 @@ Feature: I can easily create models from my blueprints
Then the spoon should not be round
Scenario: I create a named spoon, and see if it has the name
- Given a spoon exists with name: "Pete"
+ Given a spoon exists with name: "Pete", round: false
Then a spoon should exist with name: "Pete"
- And the spoon should be round
+ And the spoon should not be round
Scenario: I create 7 spoons of various roundness
- Given 3 spoons exist with round: false
- And 4 spoons exist with round: true
+ Given 2 spoons exist with round: false
+ And 2 spoons exist with round: true
+ And 1 spoon exists with round: false
+
+ # ordinal refs refer to order of introducirton to the scenario
Then the 1st spoon should not be round
And the 2nd spoon should not be round
- And the 3rd spoon should not be round
+ And the 3rd spoon should be round
And the 4th spoon should be round
- And the 5th spoon should be round
- And the 6th spoon should be round
- And the 7th spoon should be round
+ And the 5th spoon should not be round
- # multiple matching, which changes what models we are focusing on
+ # assert <n> models, this resets the ordinal refernces
And 3 spoons should exist with round: false
And the 1st spoon should not be round
And the 2nd spoon should not be round
And the last spoon should not be round
- And 4 spoons should exist with round: true
- And the 1st spoon should be round
- And the 2nd spoon should be round
- And the 3rd spoon should be round
+ # another assert <n> models, this resets the ordinal refs
+ And 2 spoons should exist with round: true
+ And the first spoon should be round
And the last spoon should be round
View
2  lib/pickle/version.rb
@@ -2,7 +2,7 @@ module Pickle
module Version
Major = 0
Minor = 1
- Tiny = 4
+ Tiny = 5
String = [Major, Minor, Tiny].join('.')
end
View
8 pickle.gemspec
@@ -2,21 +2,21 @@
Gem::Specification.new do |s|
s.name = %q{pickle}
- s.version = "0.1.4"
+ s.version = "0.1.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ian White"]
- s.date = %q{2009-01-01}
+ s.date = %q{2009-01-03}
s.description = %q{Easy model creation and reference in your cucumber features}
s.email = %q{ian.w.white@gmail.com}
- s.files = ["lib/pickle/adapter.rb", "lib/pickle/config.rb", "lib/pickle/injector.rb", "lib/pickle/parser/matchers.rb", "lib/pickle/parser/with_session.rb", "lib/pickle/parser.rb", "lib/pickle/session.rb", "lib/pickle/version.rb", "lib/pickle.rb", "rails_generators/pickle/pickle_generator.rb", "rails_generators/pickle/templates/env.rb", "rails_generators/pickle/templates/pickle_steps.rb", "License.txt", "README.textile", "Todo.txt", "History.txt", "spec/lib/pickle_adapter_spec.rb", "spec/lib/pickle_config_spec.rb", "spec/lib/pickle_injector_spec.rb", "spec/lib/pickle_parser_matchers_spec.rb", "spec/lib/pickle_parser_spec.rb", "spec/lib/pickle_session_spec.rb"]
+ s.files = ["lib/pickle/adapter.rb", "lib/pickle/config.rb", "lib/pickle/injector.rb", "lib/pickle/parser/matchers.rb", "lib/pickle/parser/with_session.rb", "lib/pickle/parser.rb", "lib/pickle/session.rb", "lib/pickle/version.rb", "lib/pickle.rb", "rails_generators/pickle/pickle_generator.rb", "rails_generators/pickle/templates/env.rb", "rails_generators/pickle/templates/pickle_steps.rb", "License.txt", "README.textile", "Todo.txt", "History.txt", "spec/lib/pickle_adapter_spec.rb", "spec/lib/pickle_config_spec.rb", "spec/lib/pickle_injector_spec.rb", "spec/lib/pickle_parser_matchers_spec.rb", "spec/lib/pickle_parser_spec.rb", "spec/lib/pickle_session_spec.rb", "spec/lib/pickle_spec.rb"]
s.has_rdoc = true
s.homepage = %q{http://github.com/ianwhite/pickle/tree}
s.rdoc_options = ["--title", "Pickle", "--line-numbers"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.1}
s.summary = %q{Easy model creation and reference in your cucumber features}
- s.test_files = ["spec/lib/pickle_adapter_spec.rb", "spec/lib/pickle_config_spec.rb", "spec/lib/pickle_injector_spec.rb", "spec/lib/pickle_parser_matchers_spec.rb", "spec/lib/pickle_parser_spec.rb", "spec/lib/pickle_session_spec.rb"]
+ s.test_files = ["spec/lib/pickle_adapter_spec.rb", "spec/lib/pickle_config_spec.rb", "spec/lib/pickle_injector_spec.rb", "spec/lib/pickle_parser_matchers_spec.rb", "spec/lib/pickle_parser_spec.rb", "spec/lib/pickle_session_spec.rb", "spec/lib/pickle_spec.rb"]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
View
4 rails_generators/pickle/templates/pickle_steps.rb
@@ -6,8 +6,8 @@
end
# create n models
-Given(/^(\d+) #{capture_plural_factory} exist(?: with #{capture_fields})?$/) do |amount, plural_factory, fields|
- amount.to_i.times { create_model(plural_factory.singularize, fields) }
+Given(/^(\d+) #{capture_plural_factory} exist(?: with #{capture_fields})?$/) do |count, plural_factory, fields|
+ count.to_i.times { create_model(plural_factory.singularize, fields) }
end
# find a model
Please sign in to comment.
Something went wrong with that request. Please try again.