diff --git a/README.md b/README.md index ddf3c36..0caff4a 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/lib/slimmer/cucumber.rb b/lib/slimmer/cucumber.rb new file mode 100644 index 0000000..2c38dd6 --- /dev/null +++ b/lib/slimmer/cucumber.rb @@ -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