Sha256: da952ed57fdd24ae4d24db98e74f2f075115bb5e6943ac416ecba17b92b511d8

Contents?: true

Size: 593 Bytes

Versions: 11

Compression:

Stored size: 593 Bytes

Contents

require 'test_helper'

class Kaui::AccountTimelinesControllerTest < Kaui::FunctionalTestHelper

  test 'should show the lookup page' do
    get :index
    assert_response 200
  end

  test 'should show the timeline page' do
    get :show, :id => @account.account_id
    assert_response 200

    assert_not_nil assigns(:account)
    assert_not_nil assigns(:timeline)
    assert_not_nil assigns(:invoices_by_id)

    assert_equal @account.account_id, assigns(:account).account_id
    assert_equal @invoice_item.invoice_id, assigns(:invoices_by_id)[@invoice_item.invoice_id].invoice_id
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kaui-0.11.0 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.10.0 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.9.0 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.8.4 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.8.3 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.8.2 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.8.1 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.8.0 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.7.2 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.7.1 test/functional/kaui/account_timelines_controller_test.rb
kaui-0.7.0 test/functional/kaui/account_timelines_controller_test.rb