Commit 2677bc3acb64a2e3a75a743bd9b5426c39decdef
1 parent
23a1ba73
Exists in
master
and in
4 other branches
network graph header, fixed test
Showing
2 changed files
with
4 additions
and
8 deletions
Show diff stats
app/views/projects/graph.html.haml
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 | ... | ... |