Sha256: 08eb134aa703d51348e8205ea2ac58be16ec4fcae74e2b6bb9ef58078a587c3c

Contents?: true

Size: 718 Bytes

Versions: 62

Compression:

Stored size: 718 Bytes

Contents

require 'test_helper'

module Workarea
  module Admin
    class BookmarksIntegrationTest < Workarea::IntegrationTest
      include Admin::IntegrationTest

      def test_creation
        assert_difference 'User::AdminBookmark.count', 1 do
          post admin.bookmarks_path,
            params: {
              bookmark: { name: 'Products', path: '/admin/catalog_products' }
            }
        end
      end

      def test_deletion
        bookmark = User::AdminBookmark.create!(
          user: User.first,
          name: 'Products',
          path: '/admin/catalog_products'
        )

        delete admin.bookmark_path(bookmark)
        assert_equal(0, User::AdminBookmark.count)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.27 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.5.4 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.26 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.5.3 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.25 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.5.2 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.24 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.5.1 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.23 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.22 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.5.0 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.21 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.5.0.beta.1 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.20 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.19 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.18 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.17 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.16 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.15 test/integration/workarea/admin/bookmarks_integration_test.rb
workarea-admin-3.4.14 test/integration/workarea/admin/bookmarks_integration_test.rb