From a9288cc3bd998d7c179b080f56eccd6a56f59133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20FRERE?= Date: Thu, 24 Oct 2013 12:41:20 +0200 Subject: Adds a button to delete the displayed translation of a blog post --- spec/features/refinery/blog/admin/posts_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'spec/features') diff --git a/spec/features/refinery/blog/admin/posts_spec.rb b/spec/features/refinery/blog/admin/posts_spec.rb index c139b0d..8507f63 100644 --- a/spec/features/refinery/blog/admin/posts_spec.rb +++ b/spec/features/refinery/blog/admin/posts_spec.rb @@ -330,6 +330,18 @@ module Refinery end end + describe "delete the post translation in secondary locale", :focus do + it "succeeds" do + within "#post_#{blog_post.id}" do + click_link("Ru") + end + + click_link "Remove this translation" + + page.should_not have_content(blog_post.title) + page.should have_content("The translation was successfully removed.") + end + end end end -- cgit v1.2.3