Sha256: 365f0ac6783f0eecc6bae0edf89b733a400c7beb8ad8b9d350913000c31f8bf9
Contents?: true
Size: 681 Bytes
Versions: 9
Compression:
Stored size: 681 Bytes
Contents
require "spec_helper" feature "translations" do before do static_blocks = StaticBlocks::Snippet.create(title: 'foo', content: 'english bar', status: 'Published') visit "/static_blocks" end scenario "can create a translation" do click_link "wk" click_link "Edit" fill_in "snippet_content", :with => "wookie bar" click_button "Submit" page.should have_content("Static block was successfully updated.") click_link "List snippets" page.should have_content("wookie bar") page.should_not have_content("english bar") click_link "en" page.should have_content("english bar") page.should_not have_content("wookie bar") end end
Version data entries
9 entries across 9 versions & 1 rubygems