Sha256: 1ebb90d3c0b14ee0a981f834832741f217952b2de8ea87d6dc67aa1dabec1eee

Contents?: true

Size: 980 Bytes

Versions: 4

Compression:

Stored size: 980 Bytes

Contents

require 'test_helper'

class ResourceFieldTest < ViewCase
  fixtures :all

  setup :sign_in

  def test_resource_select_with_its_display_names
    visit adminpanel.new_permission_path

    selector = find('#permission_resource')

    assert selector.find('option', text: 'Categoria')
    assert selector.find('option', text: 'Producto')
    assert selector.find('option', text: 'Google Analytics')
    assert selector.find('option', text: 'Usuario')
    assert selector.find('option', text: 'Rol')
    assert selector.find('option', text: 'Permiso')
    assert selector.find('option', text: 'Sección')
    assert selector.find('option', text: 'Taza')
    assert selector.find('option', text: 'Departamento')
    assert selector.find('option', text: 'Galeria')
    assert selector.find('option', text: 'FileResource')
    assert selector.find('option', text: 'Agente')
    # assert false
  end

  private
    def sign_in
      visit adminpanel.signin_path
      login
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adminpanel-2.6.1 test/features/shared/form/resource_field_test.rb
adminpanel-2.6.0 test/features/shared/form/resource_field_test.rb
adminpanel-2.5.5 test/features/shared/form/resource_field_test.rb
adminpanel-2.5.4 test/features/shared/form/resource_field_test.rb