require'spec_helper'describe'Dashboard Merge Requests'dolet(:current_user){create:user}let(:project)docreate(:empty_project)do|project|project.add_master(current_user)endendbeforedologin_as(current_user)endit'should show an empty state'dovisitmerge_requests_dashboard_path(assignee_id: current_user.id)expect(page).tohave_selector('.empty-state')endcontext'if there are merge requests'dobeforedocreate(:merge_request,assignee: current_user,source_project: project)visitmerge_requests_dashboard_path(assignee_id: current_user.id)endit'should not show an empty state'doexpect(page).not_tohave_selector('.empty-state')endendend