Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-20 08:56:39 +02:00
parent 9728ae854e
commit e64c3b2b5c
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -192,9 +192,9 @@ describe "Issues" do
end
context 'by unauthorized user' do
let(:guest) { create(:user) }
before :each do
project.team << [[guest], :guest]
issue.assignee = @user
@ -227,15 +227,15 @@ describe "Issues" do
find('.edit-issue.inline-update').select(milestone.title, from: 'issue_milestone_id')
click_button 'Update Issue'
page.should have_content "and attached to milestone"
page.should have_content "Attached to milestone"
page.has_select?('issue_assignee_id', :selected => milestone.title)
end
end
context 'by unauthorized user' do
let(:guest) { create(:user) }
before :each do
project.team << [[guest], :guest]
issue.milestone = milestone
@ -248,7 +248,7 @@ describe "Issues" do
visit project_issue_path(project, issue)
page.should have_content "attached to milestone #{milestone.title}"
page.should have_content "Attached to milestone #{milestone.title}"
end
end
end