diff options
| author | Zog | 2017-12-19 14:18:36 +0100 |
|---|---|---|
| committer | Zog | 2017-12-19 14:18:36 +0100 |
| commit | c78489f389cdb27c0afec254c7e5b76190ca2f54 (patch) | |
| tree | b0033f9fb601b2025a9183adbb273caf40bac17b /spec/support | |
| parent | f33fba57cd0b793ec0d484ef3e16db2324099aa1 (diff) | |
| parent | 4084c176a305cfed393f8090d3ec8d998865ea4a (diff) | |
| download | chouette-core-c78489f389cdb27c0afec254c7e5b76190ca2f54.tar.bz2 | |
Merge branch '5287-clean-links-in-stop-areas-index'
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/integration_spec_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/support/integration_spec_helper.rb b/spec/support/integration_spec_helper.rb new file mode 100644 index 000000000..182cadf24 --- /dev/null +++ b/spec/support/integration_spec_helper.rb @@ -0,0 +1,12 @@ +module IntegrationSpecHelper + def with_permission permission, &block + context "with permission #{permission}" do + let(:permissions){ [permission] } + context('', &block) if block_given? + end + end +end + +RSpec.configure do |config| + config.extend IntegrationSpecHelper, type: :view +end |
