Skip to content

Instantly share code, notes, and snippets.

@rodrigoulisses
Created February 11, 2013 13:54
Show Gist options
  • Select an option

  • Save rodrigoulisses/4754536 to your computer and use it in GitHub Desktop.

Select an option

Save rodrigoulisses/4754536 to your computer and use it in GitHub Desktop.
AgreementsController PUT #update should call AgreementBankAccountStatusChanger
Failure/Error: agreement = Agreement.make!(:apoio_ao_turismo)
ActiveRecord::StatementInvalid:
PG::Error: ERROR: bind message supplies 1 parameters, but prepared statement "a33" requires 2
: SELECT "compras_agencies".* FROM "compras_agencies" WHERE "compras_agencies"."id" = $1 AND "compras_agencies"."id" = $2 LIMIT 1
# ./spec/blueprints/bank_accounts.rb:4:in `block (2 levels) in <top (required)>'
# ./spec/blueprints/bank_accounts.rb:4:in `block in <top (required)>'
# ./spec/blueprints/account_movements.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/blueprints/account_movements.rb:3:in `block in <top (required)>'
# ./spec/blueprints/bank_accounts.rb:10:in `block (2 levels) in <top (required)>'
# ./spec/blueprints/bank_accounts.rb:10:in `block in <top (required)>'
# ./spec/blueprints/agreement_bank_accounts.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/blueprints/agreement_bank_accounts.rb:2:in `block in <top (required)>'
# ./spec/blueprints/agreements.rb:13:in `block (2 levels) in <top (required)>'
# ./spec/blueprints/agreements.rb:13:in `block in <top (required)>'
# ./spec/controllers/agreements_controller_spec.rb:33:in `block (3 levels) in <top (required)>'
# ./spec/support/database_cleaner.rb:11:in `block (3 levels) in <top (required)>'
# ./spec/support/database_cleaner.rb:10:in `block (2 levels) in <top (required)>'
@pechorin
Copy link

I have the same issue with my test env. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment