Sha256: 554f66cac8777cb03ac62fd5e026801c93b757b296d57499fb8147a3987cdaf0

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 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 blocks"
    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

2 entries across 2 versions & 1 rubygems

Version Path
static_blocks-1.0.1 spec/integration/translations_spec.rb
static_blocks-1.0.0 spec/integration/translations_spec.rb