2011-10-08 23:36:38 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe "Issues" do
|
|
|
|
let(:project) { Factory :project }
|
|
|
|
|
2011-10-26 15:46:25 +02:00
|
|
|
before do
|
2011-10-08 23:36:38 +02:00
|
|
|
login_as :user
|
|
|
|
project.add_access(@user, :read, :write)
|
|
|
|
|
|
|
|
@issue = Factory :issue,
|
|
|
|
:author => @user,
|
|
|
|
:assignee => @user,
|
|
|
|
:project => project
|
|
|
|
end
|
|
|
|
|
2011-10-26 15:46:25 +02:00
|
|
|
describe "add new note", :js => true do
|
|
|
|
before do
|
2011-10-08 23:36:38 +02:00
|
|
|
visit project_issue_path(project, @issue)
|
|
|
|
fill_in "note_note", :with => "I commented this issue"
|
2012-03-25 18:44:29 +02:00
|
|
|
click_button "Add Comment"
|
2011-10-08 23:36:38 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
it "should conatin new note" do
|
|
|
|
page.should have_content("I commented this issue")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|