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 5 #holder.graph
2 6  
3 7 :javascript
... ...
spec/requests/snippets_spec.rb
... ... @@ -23,14 +23,6 @@ describe "Snippets" do
23 23 it { should have_content(@snippet.project.name) }
24 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 26 describe "Destroy" do
35 27 before do
36 28 # admin access to remove snippet
... ...