From 211c06e4191395d7c23a9a523ef232506d786ab6 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 15 Jan 2013 13:37:20 +0200 Subject: [PATCH] Fix few test and notify for commit author --- app/mailers/notify.rb | 2 +- features/steps/project/project_browse_git_repo.rb | 2 +- features/steps/shared/note.rb | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index 706d7a8e..0ed06475 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -68,7 +68,7 @@ class Notify < ActionMailer::Base @commit = @note.noteable @commit = CommitDecorator.decorate(@commit) @project = @note.project - mail(to: recipient(commit_autor_email), subject: subject("note for commit #{@commit.short_id}", @commit.title)) + mail(to: commit_autor_email, subject: subject("note for commit #{@commit.short_id}", @commit.title)) end def note_issue_email(recipient_id, note_id) diff --git a/features/steps/project/project_browse_git_repo.rb b/features/steps/project/project_browse_git_repo.rb index e966f407..19edfb07 100644 --- a/features/steps/project/project_browse_git_repo.rb +++ b/features/steps/project/project_browse_git_repo.rb @@ -14,6 +14,6 @@ class ProjectBrowseGitRepo < Spinach::FeatureSteps Then 'I should see git file blame' do page.should have_content "rubygems.org" page.should have_content "Dmitriy Zaporozhets" - page.should have_content "bc3735004cb Moving to rails 3.2" + page.should have_content "Moving to rails 3.2" end end diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb index 3d5441c4..934aba6a 100644 --- a/features/steps/shared/note.rb +++ b/features/steps/shared/note.rb @@ -2,6 +2,7 @@ module SharedNote include Spinach::DSL Given 'I delete a comment' do + sleep 1 first(".js-note-delete").trigger("click") end @@ -15,6 +16,7 @@ module SharedNote within(".js-main-target-form") do fill_in "note[note]", with: "XML attached" click_button "Add Comment" + sleep 0.05 end end