access_spec.rb revision 7c7a19761235efff584ee65a1c6dc4aa1735ff64
6f74297c639ecd2696280eb0db456ffad65515deEugen Kuksarequire 'spec_helper'
7c7a19761235efff584ee65a1c6dc4aa1735ff64Eugen Kuksa let!(:repository_pub_r) { create :repository, user: user,
7c7a19761235efff584ee65a1c6dc4aa1735ff64Eugen Kuksa let!(:repository_pub_rw) { create :repository, user: user,
7c7a19761235efff584ee65a1c6dc4aa1735ff64Eugen Kuksa let!(:repository_priv_r) { create :repository, user: user,
7c7a19761235efff584ee65a1c6dc4aa1735ff64Eugen Kuksa let!(:repository_priv_rw) { create :repository, user: user,
6f74297c639ecd2696280eb0db456ffad65515deEugen Kuksa it "should fetch the public#{access_modifier} repository" do
6f74297c639ecd2696280eb0db456ffad65515deEugen Kuksa include?("public#{access_modifier}")).to be_truthy
6f74297c639ecd2696280eb0db456ffad65515deEugen Kuksa it "should not fetch the private#{access_modifier} repository" do
6f74297c639ecd2696280eb0db456ffad65515deEugen Kuksa include?("private#{access_modifier}")).to be_falsy