network graph header, fixed test

This commit is contained in:
Dmitriy Zaporozhets 2011-12-08 01:45:36 +02:00
parent 23a1ba7362
commit 2677bc3acb
2 changed files with 4 additions and 8 deletions

View file

@ -1,3 +1,7 @@
%h2.icon
%span>
Network Graph
.clear
#holder.graph
:javascript

View file

@ -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