Skip to content

Commit

Permalink
Merge pull request #162 from alphagov/cucumber-helper
Browse files Browse the repository at this point in the history
Add Cucumber test helper
  • Loading branch information
gpeng authored Aug 10, 2016
2 parents 07fcfd7 + fd8d670 commit 5e3b147
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ within(shared_component_selector('title')) do
end
```

### Cucumber

Add the following code to features/support:

```rb
require 'slimmer/cucumber'
```

### RSpec

Add the following code to spec/spec_helper:
Expand Down
10 changes: 10 additions & 0 deletions lib/slimmer/cucumber.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'cucumber'

require 'slimmer/test'
require 'slimmer/test_helpers/shared_templates'

World(Slimmer::TestHelpers::SharedTemplates)

Before do
stub_shared_component_locales
end

0 comments on commit 5e3b147

Please sign in to comment.