Sha256: 4a9cf018444a86f99c925f045475ee8126b8890c1d859fad4645c6e2edeb698d

Contents?: true

Size: 496 Bytes

Versions: 15

Compression:

Stored size: 496 Bytes

Contents

require 'test_helper'

class SortableGalleryUiTest < ViewCase
  fixtures :all

  setup :sign_in
  teardown :teardown

  def test_including_draggable_td
    visit adminpanel.gallery_path(adminpanel_galleries(:one))

    # assert for sortable stuff
    assert adminpanel_galleries(:one).galleryfiles.count > 0
    assert_selector 'td.draggable.img', count: adminpanel_galleries(:one).galleryfiles.count
  end

  protected

    def sign_in
      visit adminpanel.signin_path
      login
    end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adminpanel-3.6.1 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.6.0 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.5.1 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.5.0 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.7 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.6 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.5 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.4 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.3 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.2 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.1 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.4.0 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.3.4 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.3.3 test/features/shared/concerns/sortable_gallery_ui_test.rb
adminpanel-3.3.0 test/features/shared/concerns/sortable_gallery_ui_test.rb