diff options
Diffstat (limited to 'spec/requests/issues_notes_spec.rb')
-rw-r--r-- | spec/requests/issues_notes_spec.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/requests/issues_notes_spec.rb b/spec/requests/issues_notes_spec.rb new file mode 100644 index 00000000000..95eb2f35d79 --- /dev/null +++ b/spec/requests/issues_notes_spec.rb @@ -0,0 +1,27 @@ +require 'spec_helper' + +describe "Issues" do + let(:project) { Factory :project } + + before do + login_as :user + project.add_access(@user, :read, :write) + + @issue = Factory :issue, + :author => @user, + :assignee => @user, + :project => project + end + + describe "add new note", :js => true do + before do + visit project_issue_path(project, @issue) + fill_in "note_note", :with => "I commented this issue" + click_button "Add note" + end + + it "should conatin new note" do + page.should have_content("I commented this issue") + end + end +end |