Sha256: e6e0a7fcdb0ea796bc9c8f7f198ed818c019240309d94edfa2de9ae923edc1ab

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

require 'spec_helper'

describe 'Admin Presets Locale' do

  before(:all) { set_resource 'admin-preset' }
  before { as :admin }

  let!(:preset) { create(:preset) }

  before do
    visit gaku.admin_root_path
    click '#presets-menu a'
    click js_edit_link
    click '#admin-preset-locale-tab-link'
  end

  it 'saves', js: true do
    select 'en', from: 'preset_locale'
    click submit

    flash_updated?
    click '#admin-preset-locale-tab-link'
    expect(find_field('preset_locale').value).to eq 'en'

    preset.reload
    expect(preset.locale).to eq 'en'
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 admin/spec/features/presets/locale_preset_spec.rb
gaku-0.2.3 admin/spec/features/presets/locale_preset_spec.rb
gaku-0.2.2 admin/spec/features/presets/locale_preset_spec.rb
gaku-0.2.1 admin/spec/features/presets/locale_preset_spec.rb
gaku-0.2.0 admin/spec/features/presets/locale_preset_spec.rb