From 2677bc3acb64a2e3a75a743bd9b5426c39decdef Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 8 Dec 2011 01:45:36 +0200 Subject: [PATCH] network graph header, fixed test --- app/views/projects/graph.html.haml | 4 ++++ spec/requests/snippets_spec.rb | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/views/projects/graph.html.haml b/app/views/projects/graph.html.haml index b5f6921d..920889aa 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 ee4f90e6..d4811958 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