Commit 2677bc3acb64a2e3a75a743bd9b5426c39decdef

Authored by Dmitriy Zaporozhets
1 parent 23a1ba73

network graph header, fixed test

app/views/projects/graph.html.haml
  1 +%h2.icon
  2 + %span>
  3 + Network Graph
  4 +.clear
1 #holder.graph 5 #holder.graph
2 6
3 :javascript 7 :javascript
spec/requests/snippets_spec.rb
@@ -23,14 +23,6 @@ describe "Snippets" do @@ -23,14 +23,6 @@ describe "Snippets" do
23 it { should have_content(@snippet.project.name) } 23 it { should have_content(@snippet.project.name) }
24 it { should have_content(@snippet.author.name) } 24 it { should have_content(@snippet.author.name) }
25 25
26 - it "doesn't show expired snippets" do  
27 - @snippet.update_attribute(:expires_at, 1.day.ago.to_time)  
28 - visit project_snippet_path(project, @snippet)  
29 - page.should have_content("Sorry, this snippet is no longer exists")  
30 - page.should_not have_content(@snippet.title)  
31 - page.should_not have_content(@snippet.content)  
32 - end  
33 -  
34 describe "Destroy" do 26 describe "Destroy" do
35 before do 27 before do
36 # admin access to remove snippet 28 # admin access to remove snippet