ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.3ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 16ms (ActiveRecord: 1.9ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 13ms (Views: 5.5ms | ActiveRecord: 0.4ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 7ms (Views: 1.0ms | ActiveRecord: 0.6ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 34ms (Views: 2.5ms | ActiveRecord: 2.3ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 23ms (Views: 0.8ms | ActiveRecord: 2.0ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 8ms (ActiveRecord: 0.7ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 17ms (ActiveRecord: 1.8ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 41ms (Views: 9.0ms | ActiveRecord: 2.6ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 13ms (Views: 4.1ms | ActiveRecord: 0.9ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 1.8ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 11ms (Views: 3.9ms | ActiveRecord: 0.8ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.6ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 12ms (Views: 0.5ms | ActiveRecord: 2.3ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 11ms (ActiveRecord: 1.4ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001122", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.1ms) -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"201001129", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.1ms) -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.4ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 32", "email"=>"rowena@purdy.io", "ic"=>3278974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 36ms (Views: 0.8ms | ActiveRecord: 1.3ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 51ms (ActiveRecord: 9.5ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 1.6ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.2ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>3678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 70ms (Views: 1.3ms | ActiveRecord: 4.9ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 10ms (ActiveRecord: 1.5ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 16ms (Views: 9.1ms | ActiveRecord: 0.7ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 15ms (Views: 0.9ms | ActiveRecord: 2.1ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.4ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 17ms (Views: 2.9ms | ActiveRecord: 1.2ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (ActiveRecord: 0.3ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 0.8ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 55ms (ActiveRecord: 7.9ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>978974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 54ms (Views: 0.5ms | ActiveRecord: 5.0ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 11", "email"=>"cornelius.rath@hintz.org", "ic"=>1178974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 15ms (Views: 1.5ms | ActiveRecord: 1.3ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 25ms (Views: 2.1ms | ActiveRecord: 1.5ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 19ms (Views: 6.3ms | ActiveRecord: 1.5ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 16ms (ActiveRecord: 1.2ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 14ms (Views: 3.7ms | ActiveRecord: 0.8ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 31ms (Views: 4.3ms | ActiveRecord: 3.9ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 13ms (ActiveRecord: 2.2ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 10ms (Views: 2.1ms | ActiveRecord: 0.3ms) ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001125", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 10ms (Views: 1.2ms | ActiveRecord: 0.9ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (ActiveRecord: 0.7ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.9ms) -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 17ms (Views: 2.2ms | ActiveRecord: 0.8ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 21ms (Views: 7.3ms | ActiveRecord: 1.1ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 19ms (ActiveRecord: 2.6ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"201001129", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.4ms) ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 25ms (Views: 10.2ms | ActiveRecord: 1.7ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 29ms (Views: 1.5ms | ActiveRecord: 2.2ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 17ms (Views: 3.4ms | ActiveRecord: 1.0ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 13ms (ActiveRecord: 1.2ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"201001123", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 37ms (Views: 0.4ms | ActiveRecord: 1.9ms) -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.7ms) ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 31ms (Views: 4.6ms | ActiveRecord: 4.3ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 13ms (ActiveRecord: 3.0ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.7ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 2.0ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (Views: 1.2ms | ActiveRecord: 0.7ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 18", "email"=>"andy@bahringer.biz", "ic"=>1878974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 17ms (Views: 0.2ms | ActiveRecord: 0.9ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 29ms (ActiveRecord: 5.0ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.9ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>2178974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 25ms (Views: 0.4ms | ActiveRecord: 2.0ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 7ms (ActiveRecord: 0.8ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 26ms (Views: 3.4ms | ActiveRecord: 2.7ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 25ms (Views: 1.6ms | ActiveRecord: 3.1ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001128", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 22ms (Views: 0.2ms | ActiveRecord: 2.2ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 10ms (Views: 1.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 19ms (Views: 1.0ms | ActiveRecord: 2.4ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 5ms (ActiveRecord: 0.4ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 13ms (ActiveRecord: 2.0ms) -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 0.7ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 7ms (Views: 1.3ms | ActiveRecord: 0.5ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.4ms) ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 0.4ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 13ms (Views: 1.3ms | ActiveRecord: 0.9ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 5ms (ActiveRecord: 0.8ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.4ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 34ms (Views: 3.1ms | ActiveRecord: 3.5ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 24ms (ActiveRecord: 2.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 30ms (Views: 1.3ms | ActiveRecord: 2.6ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 13ms (Views: 2.9ms | ActiveRecord: 0.8ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001125", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 29ms (Views: 0.3ms | ActiveRecord: 2.1ms) ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 18ms (Views: 1.4ms | ActiveRecord: 2.1ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 23ms (Views: 0.8ms | ActiveRecord: 2.9ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.4ms) ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.2ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 12ms (ActiveRecord: 2.1ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 30ms (Views: 3.2ms | ActiveRecord: 2.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 28ms (Views: 0.9ms | ActiveRecord: 1.9ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 1.2ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 12ms (ActiveRecord: 1.5ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 7ms (Views: 1.5ms | ActiveRecord: 0.7ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.4ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (ActiveRecord: 0.6ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 21ms (Views: 5.2ms | ActiveRecord: 1.6ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 11ms (Views: 3.5ms | ActiveRecord: 0.6ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 33", "email"=>"lew_cormier@weinat.biz", "ic"=>3378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 29ms (Views: 0.6ms | ActiveRecord: 2.8ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 32ms (ActiveRecord: 5.4ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "ic"=>3678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Unpermitted parameter: ic Completed 422 Unprocessable Entity in 32ms (Views: 0.6ms | ActiveRecord: 2.4ms) ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"2010011211", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 25ms (Views: 0.6ms | ActiveRecord: 1.4ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------ InvoiceBar::UsersControllerTest: test_should_show_user ------------------------------------------------------ Processing by InvoiceBar::UsersController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/show.html.erb within invoice_bar/layouts/signed_out (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (5918.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 6038ms (Views: 6007.0ms | ActiveRecord: 0.2ms) ---------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_get_new ---------------------------------------------------- Processing by InvoiceBar::UsersController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (10.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/_form.html.erb (80.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/new.html.erb within invoice_bar/layouts/signed_out (81.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 92ms (Views: 88.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_create_user -------------------------------------------------------- Processing by InvoiceBar::UsersController#create as HTML Parameters: {"user"=>{"name"=>"Name 4", "email"=>"carson@feeney.com", "ic"=>"478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Unpermitted parameter: ic Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/_form.html.erb (4.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/new.html.erb within invoice_bar/layouts/signed_out (4.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (7.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.4ms) Completed 200 OK in 24ms (Views: 17.0ms | ActiveRecord: 0.4ms) --------------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_destroy_user --------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/users/1 Completed 302 Found in 54ms (ActiveRecord: 5.8ms) ------------------------------------------------------ InvoiceBar::UsersControllerTest: test_should_get_index ------------------------------------------------------ Processing by InvoiceBar::UsersController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/index.html.erb within invoice_bar/layouts/signed_in (41.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 53ms (Views: 50.4ms | ActiveRecord: 1.6ms) -------------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_update_user -------------------------------------------------------- Processing by InvoiceBar::UsersController#update as HTML Parameters: {"user"=>{"name"=>"Name 7", "email"=>"gideon@zieme.co", "ic"=>"778974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Unpermitted parameter: ic Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (3.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (15.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 22.4ms | ActiveRecord: 1.0ms) ---------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_edit ---------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (7.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (17.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (7.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (67.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/edit.html.erb within invoice_bar/layouts/signed_in (69.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 93ms (Views: 77.7ms | ActiveRecord: 1.6ms) ----------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_show_invoice_template ----------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (14.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (16.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 24.7ms | ActiveRecord: 1.8ms) -------------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template -------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/invoice_templates Completed 302 Found in 6ms (ActiveRecord: 0.5ms) --------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_new --------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (7.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (21.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 25.6ms | ActiveRecord: 0.4ms) ----------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_index ----------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (14.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 1.3ms) ------------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#create as HTML Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Redirected to http://test.host/invoice_bar/invoice_templates/2 Completed 302 Found in 24ms (ActiveRecord: 1.9ms) ------------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#update as HTML Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 7", "payment_identification_number"=>nil, "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/invoice_templates/1 Completed 302 Found in 27ms (ActiveRecord: 2.2ms) ------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (3.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (33.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/new.html.erb within invoice_bar/layouts/signed_in (34.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 63ms (Views: 44.9ms | ActiveRecord: 2.4ms) ------------------------------------------------------------ InvoiceBar::ReceiptsControllerTest: test_should_show_receipt ------------------------------------------------------------ Processing by InvoiceBar::ReceiptsController#show as HTML Parameters: {"number"=>"201001122"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (5.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (26.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/show.html.erb within invoice_bar/layouts/signed_in (27.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 38ms (Views: 30.6ms | ActiveRecord: 1.5ms) -------------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_create_receipt -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as HTML Parameters: {"receipt"=>{"number"=>"201001124", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Redirected to http://test.host/invoice_bar/receipts/2 Completed 302 Found in 45ms (ActiveRecord: 3.9ms) --------------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_destroy_receipt --------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#destroy as HTML Parameters: {"number"=>"201001125"} Redirected to http://test.host/invoice_bar/receipts/201001125 Completed 302 Found in 24ms (ActiveRecord: 2.5ms) -------------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_update_receipt -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#update as HTML Parameters: {"receipt"=>{"number"=>"201001126", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1"}, "number"=>"201001126"} Redirected to http://test.host/invoice_bar/receipts/1 Completed 302 Found in 25ms (ActiveRecord: 1.4ms) -------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#edit as HTML Parameters: {"number"=>"201001127"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (5.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (32.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/edit.html.erb within invoice_bar/layouts/signed_in (34.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 55ms (Views: 47.6ms | ActiveRecord: 1.1ms) --------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/index.html.erb within invoice_bar/layouts/signed_in (22.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 28.8ms | ActiveRecord: 0.9ms) --------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/index.html.erb within invoice_bar/layouts/signed_in (8.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 0.2ms) ------------------------------------------------------------ InvoiceBar::AccountsControllerTest: test_should_show_account ------------------------------------------------------------ Processing by InvoiceBar::AccountsController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/show.html.erb within invoice_bar/layouts/signed_in (3.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.3ms) ------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::AccountsController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (9.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 0.4ms) -------------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_create_account -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as HTML Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}} Redirected to http://test.host/invoice_bar/accounts/2 Completed 302 Found in 30ms (ActiveRecord: 3.1ms) -------------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_update_account -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as HTML Parameters: {"account"=>{"name"=>"Name 19", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/accounts/1 Completed 302 Found in 13ms (ActiveRecord: 1.5ms) -------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::AccountsController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/edit.html.erb within invoice_bar/layouts/signed_in (8.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.7ms) --------------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_destroy_account --------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/accounts/1 Completed 302 Found in 10ms (ActiveRecord: 2.1ms) --------------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_destroy_invoice --------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#destroy as HTML Parameters: {"number"=>"201001129"} Redirected to http://test.host/invoice_bar/invoices/201001129 Completed 302 Found in 15ms (ActiveRecord: 1.7ms) ------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::InvoicesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (5.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (23.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (24.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 49ms (Views: 29.6ms | ActiveRecord: 1.7ms) -------------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_create_invoice -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"invoice"=>{"number"=>"2010011212", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Redirected to http://test.host/invoice_bar/invoices/2 Completed 302 Found in 57ms (ActiveRecord: 5.8ms) -------------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_update_invoice -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"invoice"=>{"number"=>"2010011213", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}, "number"=>"2010011213"} Redirected to http://test.host/invoice_bar/invoices/1 Completed 302 Found in 21ms (ActiveRecord: 1.6ms) -------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"2010011214"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (3.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 47ms (Views: 28.3ms | ActiveRecord: 2.3ms) --------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (32.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 39ms (Views: 34.6ms | ActiveRecord: 2.3ms) ------------------------------------------------------------ InvoiceBar::InvoicesControllerTest: test_should_show_invoice ------------------------------------------------------------ Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"2010011216"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (9.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 16.2ms | ActiveRecord: 1.0ms) ----------------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_update_currency ----------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as HTML Parameters: {"currency"=>{"name"=>"kc30", "symbol"=>"k30", "priority"=>"0"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/currencies/1 Completed 302 Found in 6ms (ActiveRecord: 0.6ms) ----------------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_create_currency ----------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as HTML Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}} Redirected to http://test.host/invoice_bar/currencies/2 Completed 302 Found in 11ms (ActiveRecord: 0.9ms) ---------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_get_edit ---------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (9.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/edit.html.erb within invoice_bar/layouts/signed_in (11.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.1ms) ----------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/index.html.erb within invoice_bar/layouts/signed_in (2.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms) --------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_get_new --------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/new.html.erb within invoice_bar/layouts/signed_in (3.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (3.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------ InvoiceBar::CurrenciesControllerTest: test_should_destroy_currency ------------------------------------------------------------------ Processing by InvoiceBar::CurrenciesController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/currencies/1 Completed 302 Found in 9ms (ActiveRecord: 1.7ms) --------------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_show_currency --------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/show.html.erb within invoice_bar/layouts/signed_in (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms) Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template -------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/receipt_templates Completed 302 Found in 6ms (ActiveRecord: 0.6ms) ---------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_edit ---------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (13.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/edit.html.erb within invoice_bar/layouts/signed_in (14.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 45ms (Views: 28.5ms | ActiveRecord: 1.7ms) --------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_new --------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (4.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (5.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (25.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/new.html.erb within invoice_bar/layouts/signed_in (26.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 35ms (Views: 31.8ms | ActiveRecord: 0.3ms) ----------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_index ----------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/index.html.erb within invoice_bar/layouts/signed_in (6.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.5ms) ------------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#create as HTML Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Redirected to http://test.host/invoice_bar/receipt_templates/2 Completed 302 Found in 28ms (ActiveRecord: 3.6ms) ----------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_show_receipt_template ----------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (5.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (12.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/show.html.erb within invoice_bar/layouts/signed_in (13.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 16.5ms | ActiveRecord: 0.9ms) ------------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#update as HTML Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 7", "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/receipt_templates/1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) --------------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_destroy_contact --------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/contacts/1 Completed 302 Found in 5ms (ActiveRecord: 0.6ms) -------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::ContactsController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (14.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (16.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (7.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 29.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (11.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.6ms) ------------------------------------------------------------ InvoiceBar::ContactsControllerTest: test_should_show_contact ------------------------------------------------------------ Processing by InvoiceBar::ContactsController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) ------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::ContactsController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (6.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/new.html.erb within invoice_bar/layouts/signed_in (7.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_create_contact -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}} Unpermitted parameters: ic, dic Redirected to http://test.host/invoice_bar/contacts/2 Completed 302 Found in 12ms (ActiveRecord: 1.1ms) -------------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_update_contact -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as HTML Parameters: {"contact"=>{"name"=>"Person", "ic"=>nil, "dic"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}, "id"=>"1"} Unpermitted parameters: ic, dic Redirected to http://test.host/invoice_bar/contacts/1 Completed 302 Found in 8ms (ActiveRecord: 0.9ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" --------------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_destroy_contact --------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/contacts/1 Completed 302 Found in 30ms (ActiveRecord: 1.6ms) ------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::ContactsController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (28.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/new.html.erb within invoice_bar/layouts/signed_in (44.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (172.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms) Completed 200 OK in 237ms (Views: 235.7ms | ActiveRecord: 0.0ms) --------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (8.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.7ms) Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.4ms) -------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::ContactsController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (12.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (13.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.4ms) ------------------------------------------------------------ InvoiceBar::ContactsControllerTest: test_should_show_contact ------------------------------------------------------------ Processing by InvoiceBar::ContactsController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (3.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.4ms) -------------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_update_contact -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as HTML Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/contacts/1 Completed 302 Found in 5ms (ActiveRecord: 0.4ms) -------------------------------------------------------------- InvoiceBar::ContactsControllerTest: test_should_create_contact -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>"1"}} Redirected to http://test.host/invoice_bar/contacts/2 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) -------------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template -------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/receipt_templates Completed 302 Found in 20ms (ActiveRecord: 2.4ms) ----------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_show_receipt_template ----------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (24.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/show.html.erb within invoice_bar/layouts/signed_in (27.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 49ms (Views: 38.1ms | ActiveRecord: 3.3ms) ------------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#update as HTML Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Name 3", "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/receipt_templates/1 Completed 302 Found in 26ms (ActiveRecord: 1.3ms) ------------------------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#create as HTML Parameters: {"receipt_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Redirected to http://test.host/invoice_bar/receipt_templates/2 Completed 302 Found in 12ms (ActiveRecord: 1.3ms) ---------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_edit ---------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (8.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (21.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (6.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (72.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/edit.html.erb within invoice_bar/layouts/signed_in (76.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 90ms (Views: 84.9ms | ActiveRecord: 0.6ms) ----------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_index ----------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/index.html.erb within invoice_bar/layouts/signed_in (16.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 20.9ms | ActiveRecord: 1.4ms) --------------------------------------------------------------- InvoiceBar::ReceiptTemplatesControllerTest: test_should_get_new --------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipt_templates/new.html.erb within invoice_bar/layouts/signed_in (20.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (8.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms) Completed 200 OK in 47ms (Views: 35.7ms | ActiveRecord: 0.6ms) -------------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_create_receipt -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as HTML Parameters: {"receipt"=>{"number"=>"201001122", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Redirected to http://test.host/invoice_bar/receipts/2 Completed 302 Found in 36ms (ActiveRecord: 2.6ms) ------------------------------------------------------------ InvoiceBar::ReceiptsControllerTest: test_should_show_receipt ------------------------------------------------------------ Processing by InvoiceBar::ReceiptsController#show as HTML Parameters: {"number"=>"201001123"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (14.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/show.html.erb within invoice_bar/layouts/signed_in (16.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 36ms (Views: 22.1ms | ActiveRecord: 1.6ms) --------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/index.html.erb within invoice_bar/layouts/signed_in (29.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 39ms (Views: 35.8ms | ActiveRecord: 1.4ms) -------------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_update_receipt -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#update as HTML Parameters: {"receipt"=>{"number"=>"201001125", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "issue_date"=>"2016-07-08", "account_id"=>"1", "user_id"=>"1"}, "number"=>"201001125"} Redirected to http://test.host/invoice_bar/receipts/1 Completed 302 Found in 25ms (ActiveRecord: 1.7ms) --------------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_destroy_receipt --------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#destroy as HTML Parameters: {"number"=>"201001126"} Redirected to http://test.host/invoice_bar/receipts/201001126 Completed 302 Found in 24ms (ActiveRecord: 3.5ms) -------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#edit as HTML Parameters: {"number"=>"201001127"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (6.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (4.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (4.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (42.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/edit.html.erb within invoice_bar/layouts/signed_in (43.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.4ms) Completed 200 OK in 59ms (Views: 53.2ms | ActiveRecord: 1.4ms) ------------------------------------------------------- InvoiceBar::ReceiptsControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (25.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/receipts/new.html.erb within invoice_bar/layouts/signed_in (26.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 50ms (Views: 31.7ms | ActiveRecord: 1.6ms) -------------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_create_invoice -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"invoice"=>{"number"=>"2010011210", "amount"=>"1000000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Redirected to http://test.host/invoice_bar/invoices/2 Completed 302 Found in 54ms (ActiveRecord: 3.0ms) --------------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_destroy_invoice --------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#destroy as HTML Parameters: {"number"=>"2010011211"} Redirected to http://test.host/invoice_bar/invoices/2010011211 Completed 302 Found in 16ms (ActiveRecord: 2.3ms) --------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (51.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 65ms (Views: 55.9ms | ActiveRecord: 3.5ms) ------------------------------------------------------------ InvoiceBar::InvoicesControllerTest: test_should_show_invoice ------------------------------------------------------------ Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"2010011213"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (7.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (11.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 22.7ms | ActiveRecord: 0.7ms) -------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"2010011214"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (5.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (28.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (29.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 34.1ms | ActiveRecord: 1.3ms) ------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::InvoicesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (16.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 36ms (Views: 21.4ms | ActiveRecord: 1.0ms) -------------------------------------------------------------- InvoiceBar::InvoicesControllerTest: test_should_update_invoice -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"invoice"=>{"number"=>"2010011216", "amount"=>"1000", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>nil, "due_date"=>"2016-07-22", "issue_date"=>"2016-07-08", "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>"1", "user_id"=>"1"}, "number"=>"2010011216"} Redirected to http://test.host/invoice_bar/invoices/1 Completed 302 Found in 18ms (ActiveRecord: 1.7ms) ------------------------------------------------------ InvoiceBar::UsersControllerTest: test_should_get_index ------------------------------------------------------ Processing by InvoiceBar::UsersController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/index.html.erb within invoice_bar/layouts/signed_in (6.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.3ms) --------------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_destroy_user --------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/users/1 Completed 302 Found in 15ms (ActiveRecord: 2.4ms) ---------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_get_new ---------------------------------------------------- Processing by InvoiceBar::UsersController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/_form.html.erb (15.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/new.html.erb within invoice_bar/layouts/signed_out (17.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.9ms | ActiveRecord: 0.0ms) -------------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_update_user -------------------------------------------------------- Processing by InvoiceBar::UsersController#update as HTML Parameters: {"user"=>{"name"=>"Name 32", "email"=>"nova.oberbrunner@monahanbernhard.org", "tax_id"=>"3278974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (7.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (7.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (22.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 51ms (Views: 28.4ms | ActiveRecord: 1.2ms) -------------------------------------------------------- InvoiceBar::UsersControllerTest: test_should_create_user -------------------------------------------------------- Processing by InvoiceBar::UsersController#create as HTML Parameters: {"user"=>{"name"=>"Name 34", "email"=>"ivory_macgyver@parkerbaumbach.org", "tax_id"=>"3478974", "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Redirected to http://test.host/invoice_bar/login Completed 302 Found in 15ms (ActiveRecord: 1.2ms) ------------------------------------------------------ InvoiceBar::UsersControllerTest: test_should_show_user ------------------------------------------------------ Processing by InvoiceBar::UsersController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/users/show.html.erb within invoice_bar/layouts/signed_out (2.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template -------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/invoice_templates Completed 302 Found in 13ms (ActiveRecord: 1.3ms) ----------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_index ----------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (7.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.9ms) Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 0.5ms) ----------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_show_invoice_template ----------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/documents/_show.html.erb (4.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (4.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.4ms) --------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_new --------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (16.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 20.7ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_get_edit ---------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (4.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/invoice_templates/edit.html.erb within invoice_bar/layouts/signed_in (17.3ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 30ms (Views: 23.5ms | ActiveRecord: 0.8ms) ------------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#update as HTML Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>"0", "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Name 6", "payment_identification_number"=>nil, "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/invoice_templates/1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) ------------------------------------------------------------------------------- InvoiceBar::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#create as HTML Parameters: {"invoice_template"=>{"account_id"=>"1", "amount"=>nil, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Redirected to http://test.host/invoice_bar/invoice_templates/2 Completed 302 Found in 17ms (ActiveRecord: 1.5ms) ----------------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_update_currency ----------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as HTML Parameters: {"currency"=>{"name"=>"kc29", "symbol"=>"k29", "priority"=>"0"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/currencies/1 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) --------------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_show_currency --------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/show.html.erb within invoice_bar/layouts/signed_in (1.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) --------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_get_new --------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/new.html.erb within invoice_bar/layouts/signed_in (5.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms) ---------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_get_edit ---------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/_form.html.erb (4.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/edit.html.erb within invoice_bar/layouts/signed_in (5.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (6.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.2ms) ----------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/currencies/index.html.erb within invoice_bar/layouts/signed_in (7.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.4ms) ----------------------------------------------------------------- InvoiceBar::CurrenciesControllerTest: test_should_create_currency ----------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as HTML Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>"0"}} Redirected to http://test.host/invoice_bar/currencies/2 Completed 302 Found in 9ms (ActiveRecord: 1.1ms) ------------------------------------------------------------------ InvoiceBar::CurrenciesControllerTest: test_should_destroy_currency ------------------------------------------------------------------ Processing by InvoiceBar::CurrenciesController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/currencies/1 Completed 302 Found in 4ms (ActiveRecord: 0.6ms) --------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_get_index --------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/index.html.erb within invoice_bar/layouts/signed_in (7.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_get_new ------------------------------------------------------- Processing by InvoiceBar::AccountsController#new as HTML Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (13.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/new.html.erb within invoice_bar/layouts/signed_in (15.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 18.3ms | ActiveRecord: 0.7ms) -------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_get_edit -------------------------------------------------------- Processing by InvoiceBar::AccountsController#edit as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/_form.html.erb (6.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/edit.html.erb within invoice_bar/layouts/signed_in (8.1ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.6ms) --------------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_destroy_account --------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as HTML Parameters: {"id"=>"1"} Redirected to http://test.host/invoice_bar/accounts/1 Completed 302 Found in 2ms (ActiveRecord: 0.4ms) -------------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_create_account -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as HTML Parameters: {"account"=>{"name"=>"Account", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"2", "user_id"=>"1"}} Redirected to http://test.host/invoice_bar/accounts/2 Completed 302 Found in 8ms (ActiveRecord: 0.9ms) -------------------------------------------------------------- InvoiceBar::AccountsControllerTest: test_should_update_account -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as HTML Parameters: {"account"=>{"name"=>"Name 34", "amount"=>"0", "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>"1", "user_id"=>"1"}, "id"=>"1"} Redirected to http://test.host/invoice_bar/accounts/1 Completed 302 Found in 8ms (ActiveRecord: 0.8ms) ------------------------------------------------------------ InvoiceBar::AccountsControllerTest: test_should_show_account ------------------------------------------------------------ Processing by InvoiceBar::AccountsController#show as HTML Parameters: {"id"=>"1"} Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/accounts/show.html.erb within invoice_bar/layouts/signed_in (2.6ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (0.4ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (7.2ms) Rendered /home/strzibny/projects/invoicebar/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.2ms) ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.5ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 0.4ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Completed 422 Unprocessable Entity in 45ms (Views: 0.3ms | ActiveRecord: 1.9ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 5", "email"=>"evans@abbott.info", "tax_id"=>578974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Completed 201 Created in 22ms (Views: 1.7ms | ActiveRecord: 2.1ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 48ms (ActiveRecord: 6.5ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 13ms (ActiveRecord: 2.0ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 25ms (Views: 1.6ms | ActiveRecord: 1.6ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 19ms (Views: 0.7ms | ActiveRecord: 1.7ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.4ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.3ms) -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.6ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001123", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 18ms (Views: 0.2ms | ActiveRecord: 0.8ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"201001128", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 27ms (Views: 0.4ms | ActiveRecord: 2.2ms) -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 8ms (ActiveRecord: 0.8ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 25ms (Views: 3.0ms | ActiveRecord: 2.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 1.7ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 1.0ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.3ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 11ms (ActiveRecord: 1.9ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 21ms (Views: 3.1ms | ActiveRecord: 2.4ms) ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 0.8ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (ActiveRecord: 0.8ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 0.9ms) -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 8ms (Views: 1.0ms | ActiveRecord: 0.6ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 16ms (Views: 1.9ms | ActiveRecord: 2.3ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (ActiveRecord: 0.4ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 7ms (Views: 1.2ms | ActiveRecord: 0.7ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.2ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#update as JSON Parameters: {"invoice"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}, "number"=>"201001121"} Completed 200 OK in 83ms (Views: 1.6ms | ActiveRecord: 2.2ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001124", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 26ms (Views: 0.3ms | ActiveRecord: 1.3ms) -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.3ms) ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#show as JSON Parameters: {"number"=>"201001126"} Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 2.3ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 14ms (ActiveRecord: 0.9ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 21ms (Views: 2.7ms | ActiveRecord: 2.7ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 19ms (Views: 1.9ms | ActiveRecord: 1.9ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 0.4ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 8ms (Views: 2.0ms | ActiveRecord: 1.6ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>1378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Completed 422 Unprocessable Entity in 33ms (Views: 0.5ms | ActiveRecord: 1.8ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 31ms (ActiveRecord: 5.6ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 16", "email"=>"meagan@ledner.co", "tax_id"=>1678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Completed 201 Created in 20ms (Views: 1.1ms | ActiveRecord: 2.0ms) -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 0.6ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"2010011210", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 21ms (Views: 0.2ms | ActiveRecord: 1.0ms) -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 13ms (Views: 1.2ms | ActiveRecord: 1.3ms) ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.7ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (ActiveRecord: 0.5ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 14ms (Views: 3.8ms | ActiveRecord: 1.1ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.7ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 9ms (ActiveRecord: 0.8ms) -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 5ms (Views: 0.9ms | ActiveRecord: 0.4ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.2ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 4ms (ActiveRecord: 0.7ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 0.7ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 9ms (Views: 1.4ms | ActiveRecord: 0.6ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 13ms (ActiveRecord: 1.8ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 9ms (Views: 0.7ms | ActiveRecord: 0.8ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 16ms (Views: 2.2ms | ActiveRecord: 1.2ms) ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.6ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (ActiveRecord: 0.8ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 8ms (Views: 1.4ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 19ms (Views: 1.1ms | ActiveRecord: 1.4ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 21ms (Views: 1.1ms | ActiveRecord: 2.3ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (ActiveRecord: 0.6ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 17ms (Views: 3.8ms | ActiveRecord: 1.2ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 9ms (ActiveRecord: 1.2ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 16ms (Views: 1.4ms | ActiveRecord: 1.1ms) -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"201001122", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 30ms (Views: 0.8ms | ActiveRecord: 1.2ms) -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.6ms) -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#destroy as JSON Parameters: {"number"=>"201001124"} Completed 200 OK in 39ms (ActiveRecord: 6.1ms) ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#show as JSON Parameters: {"number"=>"201001125"} Completed 200 OK in 18ms (Views: 4.4ms | ActiveRecord: 1.3ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#update as JSON Parameters: {"receipt"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}, "number"=>"201001126"} Completed 200 OK in 85ms (Views: 3.6ms | ActiveRecord: 8.4ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 50ms (ActiveRecord: 8.2ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 0.6ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>2378974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Completed 422 Unprocessable Entity in 62ms (Views: 0.8ms | ActiveRecord: 4.1ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.7ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 26", "email"=>"sydnee@gibson.net", "tax_id"=>2678974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Completed 201 Created in 10ms (Views: 1.1ms | ActiveRecord: 0.7ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001128", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 22ms (Views: 0.2ms | ActiveRecord: 1.2ms) -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#destroy as JSON Parameters: {"number"=>"2010011210"} Completed 200 OK in 12ms (ActiveRecord: 1.7ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#update as JSON Parameters: {"invoice"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}, "number"=>"2010011211"} Completed 200 OK in 33ms (Views: 1.8ms | ActiveRecord: 3.1ms) ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#show as JSON Parameters: {"number"=>"2010011212"} Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 22ms (Views: 2.1ms | ActiveRecord: 2.4ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 3ms (ActiveRecord: 0.5ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 2.0ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 29ms (Views: 1.5ms | ActiveRecord: 2.7ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 0.7ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 14ms (ActiveRecord: 1.9ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 24ms (Views: 1.5ms | ActiveRecord: 3.4ms) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_create_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#create as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "due_date"=>nil, "issue_date"=>nil, "name"=>"Another template", "payment_identification_number"=>nil}} Completed 201 Created in 62ms (Views: 7.5ms | ActiveRecord: 5.1ms) ------------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_destroy_invoice_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 17ms (ActiveRecord: 1.5ms) ------------------------------------------------------------------------------------ InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_update_invoice_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::InvoiceTemplatesController#update as JSON Parameters: {"invoice_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "due_date"=>nil, "issue_date"=>nil, "name"=>"Updated name", "payment_identification_number"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 0.7ms) ---------------------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_show_invoice_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.2ms) ---------------------------------------------------------------------- InvoiceBar::API::InvoiceTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::InvoiceTemplatesController#index as JSON Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 1.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_update_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#update as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>"Updated contact name", "issue_date"=>nil, "name"=>"Updated name", "user_id"=>1}, "id"=>"1"} Completed 200 OK in 24ms (Views: 2.8ms | ActiveRecord: 3.6ms) ---------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_show_receipt_template ---------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------------ InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_create_receipt_template ------------------------------------------------------------------------------------ Processing by InvoiceBar::ReceiptTemplatesController#create as JSON Parameters: {"receipt_template"=>{"account_id"=>1, "contact_tax_id2"=>nil, "contact_tax_id"=>nil, "contact_name"=>nil, "issue_date"=>nil, "name"=>"Another template"}} Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 1.3ms) ------------------------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_destroy_receipt_template ------------------------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 7ms (ActiveRecord: 1.0ms) ---------------------------------------------------------------------- InvoiceBar::API::ReceiptTemplatesControllerTest: test_should_get_index ---------------------------------------------------------------------- Processing by InvoiceBar::ReceiptTemplatesController#index as JSON Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_update_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#update as JSON Parameters: {"currency"=>{"name"=>"New Currency", "symbol"=>"NC", "priority"=>0}, "id"=>"1"} Completed 200 OK in 19ms (Views: 1.1ms | ActiveRecord: 2.1ms) -------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_show_currency -------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.1ms) ---------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_create_currency ---------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#create as JSON Parameters: {"currency"=>{"name"=>"Dollars", "symbol"=>"$", "priority"=>0}} Completed 201 Created in 10ms (Views: 1.2ms | ActiveRecord: 1.2ms) ----------------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_destroy_currency ----------------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 7ms (ActiveRecord: 1.1ms) ---------------------------------------------------------------- InvoiceBar::API::CurrenciesControllerTest: test_should_get_index ---------------------------------------------------------------- Processing by InvoiceBar::CurrenciesController#index as JSON Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.3ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_create_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#create as JSON Parameters: {"user"=>{"name"=>"Name 17", "email"=>"evie@kutchbrakus.com", "tax_id"=>1778974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}} Completed 201 Created in 19ms (Views: 1.3ms | ActiveRecord: 1.6ms) -------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_destroy_user -------------------------------------------------------------- Processing by InvoiceBar::UsersController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 38ms (ActiveRecord: 6.0ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_get_index ----------------------------------------------------------- Processing by InvoiceBar::UsersController#index as JSON Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) ----------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_show_user ----------------------------------------------------------- Processing by InvoiceBar::UsersController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) ------------------------------------------------------------- InvoiceBar::API::UsersControllerTest: test_should_update_user ------------------------------------------------------------- Processing by InvoiceBar::UsersController#update as JSON Parameters: {"user"=>{"name"=>"Updated user name", "email"=>"new@mail.io", "tax_id"=>2178974, "crypted_password"=>"[FILTERED]", "phone"=>nil, "remember_me_token"=>nil, "remember_me_token_expires_at"=>nil, "reset_password_email_sent_at"=>"[FILTERED]", "reset_password_token"=>"[FILTERED]", "reset_password_token_expires_at"=>"[FILTERED]", "salt"=>nil, "web"=>nil, "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}}, "id"=>"1"} Completed 422 Unprocessable Entity in 27ms (Views: 0.3ms | ActiveRecord: 2.9ms) -------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#index as JSON Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.9ms) ----------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_show_receipt ----------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#show as JSON Parameters: {"number"=>"201001122"} Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.6ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_update_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#update as JSON Parameters: {"receipt"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}, "number"=>"201001123"} Completed 200 OK in 45ms (Views: 2.0ms | ActiveRecord: 1.3ms) ------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_create_receipt ------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#create as JSON Parameters: {"receipt"=>{"number"=>"201001125", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "issue_date"=>Fri, 08 Jul 2016, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 29ms (Views: 0.3ms | ActiveRecord: 1.5ms) -------------------------------------------------------------------- InvoiceBar::API::ReceiptsControllerTest: test_should_destroy_receipt -------------------------------------------------------------------- Processing by InvoiceBar::ReceiptsController#destroy as JSON Parameters: {"number"=>"201001126"} Completed 200 OK in 19ms (ActiveRecord: 2.1ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_create_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#create as JSON Parameters: {"contact"=>{"name"=>"Person", "tax_id"=>nil, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}} Completed 201 Created in 9ms (Views: 1.4ms | ActiveRecord: 0.5ms) ----------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_show_contact ----------------------------------------------------------------- Processing by InvoiceBar::ContactsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms) -------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::ContactsController#index as JSON Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_update_contact ------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#update as JSON Parameters: {"contact"=>{"name"=>"Updated contact", "tax_id"=>99911258, "tax_id2"=>nil, "email"=>nil, "phone"=>nil, "web"=>nil, "bank_account"=>nil, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.5ms) -------------------------------------------------------------------- InvoiceBar::API::ContactsControllerTest: test_should_destroy_contact -------------------------------------------------------------------- Processing by InvoiceBar::ContactsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 6ms (ActiveRecord: 0.7ms) -------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_destroy_account -------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#destroy as JSON Parameters: {"id"=>"1"} Completed 200 OK in 8ms (ActiveRecord: 1.1ms) -------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::AccountsController#index as JSON Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 0.8ms) ----------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_show_account ----------------------------------------------------------------- Processing by InvoiceBar::AccountsController#show as JSON Parameters: {"id"=>"1"} Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.9ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_update_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#update as JSON Parameters: {"account"=>{"name"=>"Updated account", "amount"=>1000000, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>1, "user_id"=>1}, "id"=>"1"} Completed 200 OK in 13ms (Views: 1.2ms | ActiveRecord: 1.1ms) ------------------------------------------------------------------- InvoiceBar::API::AccountsControllerTest: test_should_create_account ------------------------------------------------------------------- Processing by InvoiceBar::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Account", "amount"=>0, "bank_account_number"=>nil, "iban"=>nil, "swift"=>nil, "currency_id"=>2, "user_id"=>1}} Completed 201 Created in 25ms (Views: 3.1ms | ActiveRecord: 2.5ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_update_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#update as JSON Parameters: {"invoice"=>{"number"=>"12345", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}, "number"=>"201001127"} Completed 200 OK in 34ms (Views: 1.7ms | ActiveRecord: 2.6ms) ------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_create_invoice ------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#create as JSON Parameters: {"invoice"=>{"number"=>"201001129", "contact_name"=>"Company", "contact_tax_id"=>102939, "contact_tax_id2"=>nil, "due_date"=>Fri, 22 Jul 2016, "issue_date"=>Fri, 08 Jul 2016, "payment_identification_number"=>nil, "sent"=>false, "paid"=>false, "account_id"=>1, "user_id"=>1}} Completed 422 Unprocessable Entity in 32ms (Views: 0.2ms | ActiveRecord: 2.1ms) -------------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_destroy_invoice -------------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#destroy as JSON Parameters: {"number"=>"2010011210"} Completed 200 OK in 17ms (ActiveRecord: 2.0ms) ----------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_show_invoice ----------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#show as JSON Parameters: {"number"=>"2010011211"} Completed 200 OK in 20ms (Views: 2.7ms | ActiveRecord: 0.6ms) -------------------------------------------------------------- InvoiceBar::API::InvoicesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by InvoiceBar::InvoicesController#index as JSON Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)