Sha256: 87ae038e1c1e51ad870af5a68459e9cf19c89ec54b6105a2365b0799331e75b7

Contents?: true

Size: 1.58 KB

Versions: 5

Compression:

Stored size: 1.58 KB

Contents

require 'test_helper'

class Partners::GetPaidsControllerTest < ActionDispatch::IntegrationTest
  setup do
    @partners_get_paid = partners_get_paids(:one)
  end

  test "should get index" do
    get partners_get_paids_url
    assert_response :success
  end

  test "should get new" do
    get new_partners_get_paid_url
    assert_response :success
  end

  test "should create partners_get_paid" do
    assert_difference('Partners::GetPaid.count') do
      post partners_get_paids_url, params: { partners_get_paid: { enter_invoice_number: @partners_get_paid.enter_invoice_number, you_will_receive_this_when_question_mark: @partners_get_paid.you_will_receive_this_when_question_mark } }
    end

    assert_redirected_to partners_get_paid_url(Partners::GetPaid.last)
  end

  test "should show partners_get_paid" do
    get partners_get_paid_url(@partners_get_paid)
    assert_response :success
  end

  test "should get edit" do
    get edit_partners_get_paid_url(@partners_get_paid)
    assert_response :success
  end

  test "should update partners_get_paid" do
    patch partners_get_paid_url(@partners_get_paid), params: { partners_get_paid: { enter_invoice_number: @partners_get_paid.enter_invoice_number, you_will_receive_this_when_question_mark: @partners_get_paid.you_will_receive_this_when_question_mark } }
    assert_redirected_to partners_get_paid_url(@partners_get_paid)
  end

  test "should destroy partners_get_paid" do
    assert_difference('Partners::GetPaid.count', -1) do
      delete partners_get_paid_url(@partners_get_paid)
    end

    assert_redirected_to partners_get_paids_url
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jester-data-8.0.0 test/controllers/partners/get_paids_controller_test.rb
ezii-os-5.2.1 test/controllers/partners/get_paids_controller_test.rb
ezii-os-2.0.1 test/controllers/partners/get_paids_controller_test.rb
ezii-os-1.1.0 test/controllers/partners/get_paids_controller_test.rb
ezii-os-1.0.0 test/controllers/partners/get_paids_controller_test.rb