diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-09 00:36:38 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-09 00:36:38 +0300 |
commit | 9ba1224867665844b117fa037e1465bb706b3685 (patch) | |
tree | 52fbfc1cdb55df21843965479c97be0c91121a9a /spec/requests/commits_notes_spec.rb | |
parent | 93efff945215a4407afcaf0cba15ac601b56df0d (diff) | |
download | gitlab-ce-9ba1224867665844b117fa037e1465bb706b3685.tar.gz |
init commit
Diffstat (limited to 'spec/requests/commits_notes_spec.rb')
-rw-r--r-- | spec/requests/commits_notes_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/requests/commits_notes_spec.rb b/spec/requests/commits_notes_spec.rb new file mode 100644 index 00000000000..522fe51824b --- /dev/null +++ b/spec/requests/commits_notes_spec.rb @@ -0,0 +1,24 @@ +require 'spec_helper' + +describe "Issues" do + let(:project) { Factory :project } + let!(:commit) { project.repo.commits.first } + + before do + login_as :user + project.add_access(@user, :read, :write) + end + + describe "add new note", :js => true do + before do + visit project_commit_path(project, commit) + click_link "Comments" # notes tab + fill_in "note_note", :with => "I commented this commit" + click_button "Add note" + end + + it "should conatin new note" do + page.should have_content("I commented this commit") + end + end +end |