summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-15 00:27:26 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-15 00:27:26 +0100
commit74e48f070f5adb83c0d82ca5b8795bebb666033e (patch)
treef7a055d9cf6e3629609e99550dfee7ddf78f0642
parent8c604c9d31561dc364173626923d568bf76414ba (diff)
downloadgitlab-ce-74e48f070f5adb83c0d82ca5b8795bebb666033e.tar.gz
Smaller fixes
-rw-r--r--app/views/notes/_form.html.haml2
-rw-r--r--spec/factories.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml
index 38bb8a22cb5..d094119a9da 100644
--- a/app/views/notes/_form.html.haml
+++ b/app/views/notes/_form.html.haml
@@ -39,6 +39,6 @@
.js-notify-commit-author
= label_tag :notify_author do
- = check_box_tag :notify_author, 1 , !@note.for_commit?
+ = check_box_tag :notify_author, 1 , @note.for_commit?
Commit author
.clearfix
diff --git a/spec/factories.rb b/spec/factories.rb
index 9e16bc9e3a9..ca75e507077 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -73,8 +73,8 @@ FactoryGirl.define do
# pick 3 commits "at random" (from bcf03b5d~3 to bcf03b5d)
trait :with_diffs do
- target_branch "bcf03b5d~3"
- source_branch "bcf03b5d"
+ target_branch "master" # pretend bcf03b5d~3
+ source_branch "stable" # pretend bcf03b5d
st_commits do
[Commit.new(project.repo.commit('bcf03b5d')),
Commit.new(project.repo.commit('bcf03b5d~1')),