Sha256: 157c41d5485066fca70fdf97c4d54dce40e032e125d12bc99c82eebb9a75aebb

Contents?: true

Size: 690 Bytes

Versions: 62

Compression:

Stored size: 690 Bytes

Contents

require 'test_helper'

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

      def test_creates_releases
        post admin.create_releases_path, params: { release: { name: 'foo bar' } }
        assert_equal(1, Release.count)
        assert_equal('foo bar', Release.first.name)
      end

      def test_updates_releases
        release = create_release(name: 'new release')
        post admin.create_releases_path,
          params: { id: release.id, release: { name: 'foo bar' } }

        assert_equal(1, Release.count)
        assert_equal('foo bar', Release.first.name)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.36 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.14 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.35 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.13 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.34 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.12 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.33 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.11 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.10 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.32 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.9 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.31 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.8 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.30 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.7 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.29 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.6 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.4.28 test/integration/workarea/admin/create_releases_integration_test.rb
workarea-admin-3.5.5 test/integration/workarea/admin/create_releases_integration_test.rb