summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-31 16:20:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-31 16:20:47 +0300
commitbb2f4d665e946806d0bb94d3a50569ae6aa12e66 (patch)
treefbd06792dd73aa2ea2a617715f937d17a7066c92 /spec
parent830eaa7f4e9026cc2d1088fd601d5a913fdbdbb6 (diff)
downloadgitlab-ce-bb2f4d665e946806d0bb94d3a50569ae6aa12e66.tar.gz
Fix browse code spinach tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/support/valid_commit.rb19
1 files changed, 15 insertions, 4 deletions
diff --git a/spec/support/valid_commit.rb b/spec/support/valid_commit.rb
index 98bc59b573f..65ad1d52084 100644
--- a/spec/support/valid_commit.rb
+++ b/spec/support/valid_commit.rb
@@ -1,6 +1,9 @@
module ValidCommit
- ID = "8470d70da67355c9c009e4401746b1d5410af2e3"
- MESSAGE = "notes controller refactored"
+ ID = "570e7b2abdd848b95f2f578043fc23bd6f6fd24d"
+ MESSAGE = <<eos
+Change some files
+Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
+eos
AUTHOR_FULL_NAME = "Dmitriy Zaporozhets"
AUTHOR_EMAIL = "dmitriy.zaporozhets@gmail.com"
@@ -10,7 +13,15 @@ module ValidCommit
C_FILE_PATH = "app/models"
C_FILES = [".gitkeep", "ability.rb", "commit.rb", "issue.rb", "key.rb", "mailer_observer.rb", "merge_request.rb", "note.rb", "project.rb", "protected_branch.rb", "repository.rb", "snippet.rb", "tree.rb", "user.rb", "users_project.rb", "web_hook.rb", "wiki.rb"]
- BLOB_FILE = %{%h3= @key.title\n%hr\n%pre= @key.key\n.actions\n = link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => \"btn danger delete-key\"\n\n\n}
- BLOB_FILE_PATH = "app/views/keys/show.html.haml"
+ BLOB_FILE = <<eos
+class Commit
+ constructor: ->
+ $('.files .diff-file').each ->
+ new CommitFile(this)
+
+@Commit = Commit
+eos
+
+ BLOB_FILE_PATH = "files/js/commit.js.coffee"
end