Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Cucumber, Gherkin, and README #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
GEM
remote: https://rubygems.org/
specs:
builder (3.2.2)
backports (3.11.4)
builder (3.2.3)
coderay (1.1.0)
cucumber (1.3.18)
cucumber (3.1.2)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12)
cucumber-core (~> 3.2.0)
cucumber-expressions (~> 6.0.1)
cucumber-wire (~> 0.0.1)
diff-lcs (~> 1.3)
gherkin (~> 5.1.0)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.1)
diff-lcs (1.2.5)
gherkin (2.12.2)
multi_json (~> 1.3)
multi_test (>= 0.1.2)
cucumber-core (3.2.1)
backports (>= 3.8.0)
cucumber-tag_expressions (~> 1.1.0)
gherkin (~> 5.0)
cucumber-expressions (6.0.1)
cucumber-tag_expressions (1.1.1)
cucumber-wire (0.0.1)
diff-lcs (1.3)
gherkin (5.1.0)
method_source (0.8.2)
multi_json (1.10.1)
multi_test (0.1.1)
multi_json (1.13.1)
multi_test (0.1.2)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
Expand All @@ -32,3 +42,6 @@ DEPENDENCIES
cucumber
pry
rspec-expectations

BUNDLED WITH
1.17.1
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cucumber Basics

__Skill Level:__ Beginner
__Time Limit:__ 30 minutes
**Skill Level:** Beginner
**Time Limit:** 30 minutes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some reason this needs to change? Looks fine to me as is.


Write a feature test in Gherkin and implement `steps_definitions` that best match the intended behaviours and features requested by the 'client'

Expand All @@ -11,14 +11,17 @@ Write a feature test in Gherkin and implement `steps_definitions` that best matc
- Test the `Animal` object and ensure that it has the right output for its reader methods `name, type, age, old?`

## Instructions

1. Checkout the sample feature & steps defs named `greeter.feature` & `greeter_steps.rb`
2. `clone` your repo on to your computer
3. `cd` into your directory
4. `bundle` to pull in this project's dependencies
5. navigate to `features/animal.feature` and write your feature
6. navigate to `features/step_definitions/animal_steps.rb` and write your step defs
5. `bundle exec cucumber` to run cucumber tests
6. navigate to `features/animal.feature` and write your feature
7. navigate to `features/step_definitions/animal_steps.rb` and write your step defs

## Resources

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some reason we need this whitespace added here, and in the instructions section? Looks fine to me as is.

- [http://cukes.info/](http://cukes.info/)
- [Cuke Docs: Step Definitions](https://cucumber.io/docs/reference#step-definitions)
- [RSpec Matchers](https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers)