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
040bb915e6ddf2512b75d873c0781cd0975f36c5860f9d768f89e5e1af79f137ae33be8484b35200dd48b9e584cab2c8d0c602855ab4e698b2ef8dc1459758357c;samflores |
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
scenario 'should validate person is company' do | |
Individual.make!(:sobrinho) | |
Company.make!(:ibrama) | |
navigate 'Relatório > Cadastrais > Controle de Seguros' | |
within_modal 'Seguradora' do | |
click_button 'Pesquisar' | |
expect(page).to have_content "85.113.468/0001-45" |
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 |
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 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 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 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
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)>' |
NewerOlder