Skip to content
Snippets Groups Projects

Add MergeRequestReader to chat

Merged Gosia Ksionek requested to merge mk-mr-for-chat into master
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
@@ -92,4 +92,22 @@
end
end
end
describe '#current_page_description' do
context 'with an unauthorized resource' do
let(:resource) { create(:issue) }
it 'returns nil' do
expect(context.current_page_sentence).to be_nil
end
end
context 'with an authorized resource' do
let(:resource) { create(:issue, project: project) }
it 'returns sentence about the resource' do
expect(context.current_page_sentence).to include("The user is currently on a page that displays an issue")
end
end
end
end
Loading