Sha256: 704c17bbd3cb79bd6d98614404ec11739674502c6ac32daf944bc1d5bb33c4e8

Contents?: true

Size: 873 Bytes

Versions: 16

Compression:

Stored size: 873 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/helper')

describe "Filters" do
  Dir[File.expand_path("../../lib/padrino-admin/locale/admin/*.yml", __FILE__)].each do |file|
    name = File.basename(file, '.yml')
    it "should have a vaild #{name} locale for admin" do
      base = YAML.load_file(file)
      base = base[name]['padrino']['admin']
      assert base.present?
      assert base['save'].present?
      assert base['cancel'].present?
      assert base['list'].present?
      assert base['edit'].present?
      assert base['new'].present?
      assert base['show'].present?
      assert base['delete'].present?
      assert base['confirm'].present?
      assert base['created_at'].present?
      assert base['all'].present?
      assert base['profile'].present?
      assert base['settings'].present?
      assert base['logout'].present?
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
padrino-admin-0.12.9 test/test_locale.rb
padrino-admin-0.12.8.1 test/test_locale.rb
padrino-admin-0.13.3 test/test_locale.rb
padrino-admin-0.12.8 test/test_locale.rb
padrino-admin-0.12.7 test/test_locale.rb
padrino-admin-0.12.6 test/test_locale.rb
padrino-admin-0.13.2 test/test_locale.rb
padrino-admin-0.13.1 test/test_locale.rb
padrino-admin-0.13.1.beta1 test/test_locale.rb
padrino-admin-0.13.0 test/test_locale.rb
padrino-admin-0.13.0.beta3 test/test_locale.rb
padrino-admin-0.13.0.beta2 test/test_locale.rb
padrino-admin-0.12.5 test/test_locale.rb
padrino-admin-0.13.0.beta1 test/test_locale.rb
padrino-admin-0.12.4 test/test_locale.rb
padrino-admin-0.12.3 test/test_locale.rb