diff options
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 | 
