Commit e64c3b2b5c1907034a07aa69c0e732afc40170a5
1 parent
9728ae85
Exists in
spb-stable
and in
3 other branches
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
spec/features/issues_spec.rb
| ... | ... | @@ -192,9 +192,9 @@ describe "Issues" do |
| 192 | 192 | end |
| 193 | 193 | |
| 194 | 194 | context 'by unauthorized user' do |
| 195 | - | |
| 195 | + | |
| 196 | 196 | let(:guest) { create(:user) } |
| 197 | - | |
| 197 | + | |
| 198 | 198 | before :each do |
| 199 | 199 | project.team << [[guest], :guest] |
| 200 | 200 | issue.assignee = @user |
| ... | ... | @@ -227,15 +227,15 @@ describe "Issues" do |
| 227 | 227 | find('.edit-issue.inline-update').select(milestone.title, from: 'issue_milestone_id') |
| 228 | 228 | click_button 'Update Issue' |
| 229 | 229 | |
| 230 | - page.should have_content "and attached to milestone" | |
| 230 | + page.should have_content "Attached to milestone" | |
| 231 | 231 | page.has_select?('issue_assignee_id', :selected => milestone.title) |
| 232 | 232 | end |
| 233 | 233 | end |
| 234 | 234 | |
| 235 | 235 | context 'by unauthorized user' do |
| 236 | - | |
| 236 | + | |
| 237 | 237 | let(:guest) { create(:user) } |
| 238 | - | |
| 238 | + | |
| 239 | 239 | before :each do |
| 240 | 240 | project.team << [[guest], :guest] |
| 241 | 241 | issue.milestone = milestone |
| ... | ... | @@ -248,7 +248,7 @@ describe "Issues" do |
| 248 | 248 | |
| 249 | 249 | visit project_issue_path(project, issue) |
| 250 | 250 | |
| 251 | - page.should have_content "attached to milestone #{milestone.title}" | |
| 251 | + page.should have_content "Attached to milestone #{milestone.title}" | |
| 252 | 252 | end |
| 253 | 253 | end |
| 254 | 254 | end | ... | ... |