Commit 2677bc3a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

network graph header, fixed test

parent 23a1ba73
%h2.icon
%span>
Network Graph
.clear
#holder.graph #holder.graph
:javascript :javascript
......
...@@ -23,14 +23,6 @@ describe "Snippets" do ...@@ -23,14 +23,6 @@ describe "Snippets" do
it { should have_content(@snippet.project.name) } it { should have_content(@snippet.project.name) }
it { should have_content(@snippet.author.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 describe "Destroy" do
before do before do
# admin access to remove snippet # admin access to remove snippet
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment