This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) BankTransferClosingsController GET new assigns the bank transfer id to the closing | |
Failure/Error: bank_transfer = BankTransfer.make!(:semestre_de_2012, :check => nil) | |
TypeError: | |
can't convert Symbol into Integer | |
# ./app/models/bank_account.rb:108:in `[]' | |
# ./app/models/bank_account.rb:108:in `balance_at' | |
# ./app/models/bank_account.rb:124:in `balance' | |
# ./app/models/bank_transfer.rb:32:in `bank_account_balance' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) BankTransferClosingsController GET new assigns the bank transfer id to the closing | |
Failure/Error: bank_transfer = BankTransfer.make!(:semestre_de_2012, :check => nil) | |
ActiveRecord::RecordInvalid: | |
A validação falhou: Valor não pode ser maior que o saldo da conta bancária (R$ 0,00) | |
# ./spec/controllers/bank_transfer_closings_controller_spec.rb:11: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)>' | |
2) BankTransferClosingsController POST create transfer the funds from one account to the other | |
Failure/Error: bank_transfer = BankTransfer.make!(:semestre_de_2012, :check => nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrecatoryParcel < Compras::Model | |
attr_accessible :expiration_date, :value, :situation, :payment_date | |
attr_accessible :amount_paid, :observation | |
has_enumeration_for :situation, :with => PrecatoryParcelSituation | |
belongs_to :precatory | |
delegate :pledges, :to => :precatory, :prefix => true, :allow_nil => true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RemovePersonIdAndAddIndividualIdInToEmployee < ActiveRecord::Migration | |
def change | |
add_column :compras_employees, :individual_id, :integer | |
add_index :compras_employees, :individual_id | |
add_foreign_key :compras_employees, :unico_individuals, | |
:column => :individual_id | |
execute <<-SQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PeopleController < CrudController | |
respond_to :js | |
def new | |
object = build_resource | |
object.personable = Individual.new | |
super | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe PeopleController do | |
before do | |
controller.stub(:authenticate_user!) | |
controller.stub(:authorize_resource!) | |
end | |
describe "PUT 'update'" do | |
let :person do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PeopleController < CrudController | |
respond_to :js | |
def new | |
object = build_resource | |
object.personable = Individual.new | |
super | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MileageSearcher | |
include Quaestio | |
repository Mileage | |
def organogram_id(organogram_id) | |
where { self.organogram_id.eq(organogram_id) } | |
end | |
def driver_id(driver_id) | |
where { self.driver_id.eq(driver_id) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Report::ControlOfRevisionsController < Report::BaseController | |
report_class ControlOfRevisionReport, :repository => ControlOfRevisionSearcher | |
end | |
require 'active_relatus/controller' | |
class Report::BaseController < ApplicationController | |
include ActiveRelatus::Controller |
OlderNewer