This file contains hidden or 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
mickael@mickael-laptop:~/projects/pabd/test$ ruby functional/hr/alert_collaborators_controller_test.rb | |
Loaded suite functional/hr/alert_collaborators_controller_test | |
Started | |
................................. | |
Finished in 5.545446 seconds. | |
33 tests, 50 assertions, 0 failures, 0 errors |
This file contains hidden or 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 'test_helper' | |
class Hr::AlertCollaboratorsControllerTest < ActionController::TestCase | |
context "logged in" do | |
setup do | |
UserSession.create(Factory(:user)) | |
Factory(:agency) | |
Factory(:feedback) | |
@alert_collaborator = Factory.stub(:alert_collaborator) | |
@alert_collaborator.id = 1001 |
This file contains hidden or 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
Factory(:agency) | |
Factory(:feedback) | |
mickael@mickael-laptop:~/projects/pabd/test$ rake test | |
(in /home/mickael/projects/pabd) | |
/usr/bin/ruby1.8 -I"lib:test" "/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/collaborator_test.rb" "test/unit/trouble_project_test.rb" "test/unit/big_deal_test.rb" "test/unit/user_test.rb" "test/unit/feedback_test.rb" "test/unit/country_test.rb" "test/unit/project_test.rb" "test/unit/collaborator_functions_test.rb" "test/unit/arrival_collaborator_test.rb" "test/unit/delivery_test.rb" "test/unit/training_test.rb" "test/unit/departure_collaborator_test.rb" "test/unit/function_test.rb" "test/unit/production_day_test.rb" "test/unit/collaborator_number_test.rb" "test/unit/service_test.rb" "test/unit/assignment_test.rb" "test/unit/subcontract_number_test.rb" "test/unit/offer_test.rb" "test/unit/pipe_test.rb" "test/unit/division_test.rb" "test/unit/cost_number_test.rb" "test/unit/stage_test.rb" "test/unit/helpers/users_helper_test.rb" "test/unit/helpers |
This file contains hidden or 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
51) Error: | |
test: logged in on GET to :show should respond with success. (Admin::SubcontractTypesControllerTest): | |
ActionView::TemplateError: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id | |
On line #3 of app/views/shared/_agency_time_form.html.erb | |
1: <% form_tag :controller => '/home', :action => 'agency_feedback' do -%> | |
2: | |
3: <%= select("home", "agency", agencies_optgroup(current_agency)) %> | |
4: <%= select("home", "feedback", @feedbacks.collect {|p| [ p.formated, p.id ] }, {:selected => current_time.id}) %> | |
5: <br /> |
This file contains hidden or 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
######### Recuperation du premier collaborateur | |
>> Collaborator.first | |
=> #<Collaborator id: 3, firstname: "Madisen", lastname: "Altenwerth", email: "[email protected]", created_at: "2010-05-25 10:03:42", updated_at: "2010-05-25 12:27:40", function_id: 5, agency_id: 5> | |
######### Insertion d un évènement "changement de fonction" sur le collaborateur. | |
>> HrCollaboratorFunction.create!(:feedback_id => 13, :agency_id => 1, :collaborator_id => 3, :function_id => 2) | |
=> #<HrCollaboratorFunction id: 1, feedback_id: 13, agency_id: 1, function_id: 2, collaborator_id: 3, created_at: "2010-05-25 12:31:06", updated_at: "2010-05-25 12:31:06"> | |
######### Affichage du premier collaborateur (il a changé de fonction) | |
>> Collaborator.first |
This file contains hidden or 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
France | Nord-Ouest | Nantes | |||
---|---|---|---|---|---|
France | Nord-Ouest | Centre-Bretagne | Rennes | ||
France | Nord-Ouest | Centre-Bretagne | Tour | ||
France | Sud-Ouest | Poitou-Aquitaine | Niort | ||
France | Sud-Ouest | Poitou-Aquitaine | Bordeaux | ||
France | Sud-Ouest | Toulouse | |||
France | Sud-Est | Sud | Marseille | ||
France | Sud-Est | Sud | Nice | ||
France | Sud-Est | Sud | Montpellier | ||
France | Sud-Est | Rhône-Alpes/Auvergne | Lyon |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Document : agencies.xml | |
Created on : 18 mai 2010, 16:48 | |
Author : mickael | |
Description: | |
Purpose of the document follows. | |
--> |
This file contains hidden or 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
mickael@mickael-laptop:~/projects/pabd$ rake test:units | |
(in /home/mickael/projects/pabd) | |
/usr/bin/ruby1.8 -I"lib:test" "/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb" "test/unit/feedback_test.rb" "test/unit/country_test.rb" "test/unit/delivery_test.rb" "test/unit/function_test.rb" "test/unit/service_test.rb" "test/unit/assignment_test.rb" "test/unit/division_test.rb" "test/unit/stage_test.rb" "test/unit/helpers/divisions_helper_test.rb" "test/unit/helpers/countries_helper_test.rb" "test/unit/helpers/users_helper_test.rb" "test/unit/helpers/home_helper_test.rb" "test/unit/helpers/user_sessions_helper_test.rb" "test/unit/helpers/admin/stages_helper_test.rb" "test/unit/helpers/admin/account_helper_test.rb" "test/unit/helpers/admin/subcontract_types_helper_test.rb" "test/unit/helpers/admin/services_helper_test.rb" "test/unit/helpers/admin/admin_helper_test.rb" "test/unit/helpers/admin/skills_helper_test.rb" "test/unit/helpers/admin/functions_helper_test.rb" "test/unit/hel |