Skip to content

Instantly share code, notes, and snippets.

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
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
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
We couldn’t find that file to show.
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.876578 seconds.
33 tests, 50 assertions, 0 failures, 0 errors
mickael@mickael-laptop:~/projects/pabd/test$ ruby functional/hr/alert_collaborators_controller_test.rb
Loaded suite functional/hr/alert_collaborators_controller_test
Started
...........EEEE..................
Finished in 5.916115 seconds.
1) Error:
test: logged in on GET to index should not set the flash. (Hr::AlertCollaboratorsControllerTest):
ActionView::TemplateError: undefined method `just_raise_that_exception' for I18n:Module
On line #13 of app/views/hr/alert_collaborators/index.html.erb
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
require 'factory_girl'
require 'shoulda'
require 'faker'
require "authlogic/test_case"
require 'i18n'
class ActiveSupport::TestCase
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
require 'factory_girl'
require 'shoulda'
require 'faker'
require "authlogic/test_case"
require 'i18n'
class ActiveSupport::TestCase
mickael@mickael-laptop:~/projects/pabd/test$ ruby functional/commerce/commercial/prospects_controller_test.rb
* WARNING: 'test: logged in on GET to index should respond with success. ' is already defined
* WARNING: 'test: logged in on GET to index should render with the "application" layout. ' is already defined
* WARNING: 'test: logged in on GET to index should render template :index. ' is already defined
* WARNING: 'test: logged in on GET to index should not set the flash. ' is already defined
* WARNING: 'test: logged in on GET to new should respond with success. ' is already defined
* WARNING: 'test: logged in on GET to new should render with the "application" layout. ' is already defined
* WARNING: 'test: logged in on GET to new should render template :new. ' is already defined
* WARNING: 'test: logged in on GET to new should not set the flash. ' is already defined
* WARNING: 'test: logged in on POST to :create (valid data) should assign @prospect with a kind of Prospect. ' is already d
We couldn’t find that file to show.