Sha256: e176ce4a8838b7d6c3c5b534ad4359c0272bd50619731d97fb38ce3e2aeae09f

Contents?: true

Size: 491 Bytes

Versions: 22

Compression:

Stored size: 491 Bytes

Contents

require 'test_helper'

class Kaui::InvoiceItemsControllerTest < ActionController::TestCase
  fixtures :invoice_items

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

  test "should find invoice item by id" do
    item = invoice_items(:recurring_item_for_pierre)

    get :show, :id => item["invoiceItemId"], :invoice_id => item["invoiceId"]
    assert_response :success
    assert_equal assigns(:invoice_item).invoice_item_id, item["invoiceItemId"]
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kaui-0.2.5 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.2.4 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.2.3 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.2.2 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.2.1 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.2.0 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.18 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.17 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.16 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.15 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.14 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.12 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.11 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.10 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.9 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.8 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.7 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.6 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.5 test/functional/kaui/invoice_items_controller_test.rb
kaui-0.1.4 test/functional/kaui/invoice_items_controller_test.rb