aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorJérémy FRERE <frere.jeremy@gmail.com>2013-10-24 12:41:20 +0200
committerPhilip Arndt <git@p.arndt.io>2015-05-14 09:52:29 +1200
commita9288cc3bd998d7c179b080f56eccd6a56f59133 (patch)
treeb4658ea330aab2f713151058b40cbbd1f2ac127a /spec/features
parentbb0d3b0da633053c0236bdbe5a9452ae9655fda7 (diff)
downloadrefinerycms-blog-a9288cc3bd998d7c179b080f56eccd6a56f59133.tar.gz
refinerycms-blog-a9288cc3bd998d7c179b080f56eccd6a56f59133.tar.bz2
refinerycms-blog-a9288cc3bd998d7c179b080f56eccd6a56f59133.zip
Adds a button to delete the displayed translation of a blog post
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/refinery/blog/admin/posts_spec.rb12
1 files changed, 12 insertions, 0 deletions
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