it'parses a project gl_repository'doexpect(described_class.parse("project-#{project.id}")).toeq([project,false])endit'parses a wiki gl_repository'doexpect(described_class.parse("wiki-#{project.id}")).toeq([project,true])endit'throws an argument error on an invalid gl_repository'doexpect{described_class.parse("badformat-#{project.id}")}.toraise_error(ArgumentError)endendend