Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issues_notes_spec.rb « requests « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 95eb2f35d79f39423adfcf78112340d398bb00c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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