Sha256: 57fb6b1b0797459d16114ef941f0bdeef8f83a9b8192bedd3cc61c1395cee52b

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

shared_context 'permissor support' do
  let!(:public_user) { FactoryGirl.create(:user) }
  let!(:private_user) { FactoryGirl.create(:user) }

  let!(:public_user_page) { FactoryGirl.create(:page, :user => public_user)}
  let!(:private_user_page) { FactoryGirl.create(:page, :user => private_user)}

  before do
    public_user.wildcard_permit! 'public', 'Page'
    private_user.wildcard_permit! 'none', 'Page'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
private_person-0.5.0 spec/support/permissor_support.rb
private_person-0.4.0 spec/support/permissor_support.rb
private_person-0.3.1 spec/support/permissor_support.rb
private_person-0.3.0 spec/support/permissor_support.rb
private_person-0.2.9 spec/support/permissor_support.rb
private_person-0.2.4 spec/support/permissor_support.rb