summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-08 01:45:36 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-08 01:45:36 +0200
commit2677bc3acb64a2e3a75a743bd9b5426c39decdef (patch)
treebd1f7a2acbd68a452be61395ef8b7a2fee6eeb41
parent23a1ba7362a13dfcde05d158f2d2237351090730 (diff)
downloadgitlab-ce-2677bc3acb64a2e3a75a743bd9b5426c39decdef.tar.gz
network graph header, fixed test
-rw-r--r--app/views/projects/graph.html.haml4
-rw-r--r--spec/requests/snippets_spec.rb8
2 files changed, 4 insertions, 8 deletions
diff --git a/app/views/projects/graph.html.haml b/app/views/projects/graph.html.haml
index b5f6921d407..920889aae7d 100644
--- a/app/views/projects/graph.html.haml
+++ b/app/views/projects/graph.html.haml
@@ -1,3 +1,7 @@
+%h2.icon
+ %span>
+ Network Graph
+.clear
#holder.graph
:javascript
diff --git a/spec/requests/snippets_spec.rb b/spec/requests/snippets_spec.rb
index ee4f90e6028..d4811958db3 100644
--- a/spec/requests/snippets_spec.rb
+++ b/spec/requests/snippets_spec.rb
@@ -23,14 +23,6 @@ describe "Snippets" do
it { should have_content(@snippet.project.name) }
it { should have_content(@snippet.author.name) }
- it "doesn't show expired snippets" do
- @snippet.update_attribute(:expires_at, 1.day.ago.to_time)
- visit project_snippet_path(project, @snippet)
- page.should have_content("Sorry, this snippet is no longer exists")
- page.should_not have_content(@snippet.title)
- page.should_not have_content(@snippet.content)
- end
-
describe "Destroy" do
before do
# admin access to remove snippet