Commit ededfd2d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
parent ee750298
...@@ -186,7 +186,7 @@ describe "Issues" do ...@@ -186,7 +186,7 @@ describe "Issues" do
find('.edit-issue.inline-update #issue_assignee_id').set project.team.members.first.id find('.edit-issue.inline-update #issue_assignee_id').set project.team.members.first.id
click_button 'Update Issue' click_button 'Update Issue'
page.should have_content "currently assigned to" page.should have_content "Assignee:"
page.has_select?('issue_assignee_id', :selected => project.team.members.first.name) page.has_select?('issue_assignee_id', :selected => project.team.members.first.name)
end end
end end
...@@ -206,11 +206,9 @@ describe "Issues" do ...@@ -206,11 +206,9 @@ describe "Issues" do
login_with guest login_with guest
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
page.should have_content "currently assigned to #{issue.assignee.name}" page.should have_content issue.assignee.name
end end
end end
end end
describe 'update milestone from issue#show' do describe 'update milestone from issue#show' do
...@@ -225,17 +223,16 @@ describe "Issues" do ...@@ -225,17 +223,16 @@ describe "Issues" do
find('.edit-issue.inline-update').select(milestone.title, from: 'issue_milestone_id') find('.edit-issue.inline-update').select(milestone.title, from: 'issue_milestone_id')
click_button 'Update Issue' click_button 'Update Issue'
page.should have_content "Attached to milestone" page.should have_content "Milestone"
page.has_select?('issue_assignee_id', :selected => milestone.title) page.has_select?('issue_assignee_id', :selected => milestone.title)
end end
end end
context 'by unauthorized user' do context 'by unauthorized user' do
let(:guest) { create(:user) } let(:guest) { create(:user) }
before :each do before :each do
project.team << [[guest], :guest] project.team << [guest, :guest]
issue.milestone = milestone issue.milestone = milestone
issue.save issue.save
end end
...@@ -245,8 +242,7 @@ describe "Issues" do ...@@ -245,8 +242,7 @@ describe "Issues" do
login_with guest login_with guest
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
page.should have_content milestone.title
page.should have_content "Attached to milestone #{milestone.title}"
end end
end end
end end
...@@ -258,4 +254,4 @@ describe "Issues" do ...@@ -258,4 +254,4 @@ describe "Issues" do
def last_issue def last_issue
all("ul.issues-list li").last.text all("ul.issues-list li").last.text
end end
end end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment