diff --git a/Gemfile.lock b/Gemfile.lock index b880449..892b010 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,29 +1,37 @@ GEM remote: https://rubygems.org/ specs: - builder (3.2.2) - coderay (1.1.0) - cucumber (1.3.18) + backports (3.11.4) + builder (3.2.3) + coderay (1.1.2) + 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) - method_source (0.8.2) - multi_json (1.10.1) - multi_test (0.1.1) - pry (0.10.1) + 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.9.1) + multi_json (1.13.1) + multi_test (0.1.2) + pry (0.12.0) coderay (~> 1.1.0) - method_source (~> 0.8.1) - slop (~> 3.4) - rspec-expectations (3.1.2) + method_source (~> 0.9.0) + rspec-expectations (3.8.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.1.0) - rspec-support (3.1.2) - slop (3.6.0) + rspec-support (~> 3.8.0) + rspec-support (3.8.0) PLATFORMS ruby @@ -32,3 +40,6 @@ DEPENDENCIES cucumber pry rspec-expectations + +BUNDLED WITH + 1.17.1 diff --git a/README.md b/README.md index a3bb34b..9c95dd6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Cucumber Basics -__Skill Level:__ Beginner -__Time Limit:__ 30 minutes +**Skill Level:** Beginner +**Time Limit:** 30 minutes Write a feature test in Gherkin and implement `steps_definitions` that best match the intended behaviours and features requested by the 'client' @@ -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 + - [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)