Displaying 17 results from an estimated 17 matches for "setup_and_teardown".
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...ongs_to_polymorphic_with_counter_cache(AssociationsJoinModelTest)
Type: Failure
Message: <0> expected but was
<nil>.
./test/associations/join_model_test.rb:299:in `test_belongs_to_polymorphic_with_counter_cache''
./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:90:in `__send__''
./test/../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:90:in `run''
Name: test_create_associate_when_adding_to_has_many_through(AssociationsJoinModelTest)
Type: Failure
Message: Exception raised:
Class: <ActiveRecord::Statem...
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
...`new''
./test/../lib/action_mailer/base.rb:351:in `method_missing''
./test/mail_service_test.rb:369:in `test_custom_template''
./test/mail_service_test.rb:369:in `test_custom_template''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run''
---------------
./test/mail_service_test.rb:369:in `test_custom_template''
./test/../lib/../../actionpack/lib/../../activesupport/l...
2008 Jan 22
0
[CruiseControl] RubyOnRails build 8688 failed
...----------------
Name: test_ordering(FirstSecondHelperTest)
Type: Failure
Message: <"first mail"> expected but was
<"">.
./test/mail_render_test.rb:114:in `test_ordering''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run''
Name: test_use_helper(MailerHelperTest)
Type: Failure
Message: <"From: tester@example.com\r\nTo: test@localhost\r\nSubject: using...
2009 Apr 21
2
validates_uniqueness_of
...t:0x48077e0>
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/test_process.rb:471:in
`method_missing''
bins_controller_test.rb:119:in `test_create_failure_cycle_unique''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in
`__send__''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in
`run''
14 tests, 28 assertions, 0 failures, 1 errors
>Exit code: 1
Thanx a lot.
Regards,
cutelucks
--
Posted via http://www.ruby-forum.com/.
2009 Apr 30
1
error with test:functionals
...t/lib/active_support/testing/core_ext/test/unit/
assertions.rb:47:in `assert_difference''
./test/functional/artists_controller_test.rb:16:in
`test_should_create_artist''
/Users/bonacode/Desktop/arteacesso-br/arteacesso/vendor/rails/
activesupport/lib/active_support/testing/setup_and_teardown.rb:60:in
`__send__''
/Users/bonacode/Desktop/arteacesso-br/arteacesso/vendor/rails/
activesupport/lib/active_support/testing/setup_and_teardown.rb:60:in
`run'']:
<Artist.count> was the expression that failed.
<2> expected but was
<1>.
I checking the database...
2008 Jul 17
2
problems with validation on STI
...sc
field that is properly spelled, a numerical :param1, and a unique
:dist_name. The message is:
1) Failure:
test_params_exp(DistributionTest)
[test/unit/distribution_test.rb:35:in `test_params_exp''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/testi
ng/setup_and_teardown.rb:33:in `__send__''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/testi
ng/setup_and_teardown.rb:33:in `run'']:
<false> is not true.
What am I doing wrong?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~-...
2008 Feb 19
1
[CruiseControl] RubyOnRails build 8896 failed
...up''
./test/cases/../../lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:40:in `silence_stream''
./test/cases/associations/eager_load_nested_include_test.rb:8:in `setup''
./test/cases/../../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:58:in `run''
Name: test_include_query(EagerLoadPolyAssocsTest)
Type: Error
Message: ActiveRecord::StatementInvalid: PGError: ERROR: table "circles" does not exist
: DROP TABLE "circles"
./test/cases/../../lib/active_record/connection_adapters/abstract_adapter....
2008 Dec 11
2
uninitialized constant ActionVie
...;')
end
end
..
end
BUT running the console I get an error :
yves$ script/console
Loading development environment (Rails 2.2.2)
/...i/config/environment.rb:111:NameError: uninitialized constant
ActionView
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:14:in
`included'':NameError: uninitialized constant ActiveSupport::Callbacks
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19:NoMethodError:
undefined method `require_dependency'' for main:Object
what could be the error ? thanks for your help ......
2008 Mar 30
0
[CruiseControl] RubyOnRails build 9153 failed
...ge: NameError: uninitialized constant BufferedLoggerTest::FileUtils
./test/../lib/active_support/dependencies.rb:478:in `const_missing''
./test/buffered_logger_test.rb:115:in `test_should_create_the_log_directory_if_it_doesnt_exist''
./test/../lib/active_support/testing/setup_and_teardown.rb:59:in `__send__''
./test/../lib/active_support/testing/setup_and_teardown.rb:59:in `run''
See http://cruisecontrolrb.thoughtworks.com/builds/RubyOnRails/9153 for details.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subs...
2011 Jul 25
4
Rails 3 test database issues
...record-3.0.3/lib/
active_record/fix
tures.rb:938:in `setup_fixtures''
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/
active_support/c
allbacks.rb:414:in `_run_setup_callbacks''
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/
active_support/t
esting/setup_and_teardown.rb:34:in `run''
2 tests, 0 assertions, 0 failures, 2 errors, 0 skips
Test run options: --seed 35707
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3Mb...
2012 Jan 18
3
Cannot redirect to nil!
I need some help please..
when I created web application about books market, i create a cart and
using test the message error appear like this on rake test:functionals
LineItemsControllerTest
> test_should_create_line_item
> ERROR
> Cannot redirect to nil!
and also appear on web side, thats error told that "Cannot redirect to nil!"
Then i was checking the code,
2010 Jul 25
0
Testing problems: ActiveSupport
...in
`method_missing''
D:/Projects/RailsSpace/test/functional/user_controller_test.rb:39:in
`try_to_login''
D:/Projects/RailsSpace/test/functional/user_controller_test.rb:28:in
`testing_logout''
C:/Ruby191/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/testing/setup_and_teardown.rb:62:in
`run''
C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:38:in
`block in run''
C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit/testsuite.rb:37:in
`each''
C:/Ruby191/lib/ruby/gems/1.9.1/gems/test-unit-2.1.0/lib/test/unit...
2006 Sep 11
4
Using rspec and mocha
...ing framework, whereas Mocha is. So I''d like to play to both of
their strengths and use rspec as my testing/specification framework
and Mocha do to mocks.
I installed the plugins for each, and whenever I try to mock a method
with Mocha I get a nil object error at
plugins/mocha/lib/stubba/setup_and_teardown.rb at line 18. I''ve
looked through all the files referenced in the trace and haven''t been
able to figure anything out.
Not sure if anyone else has tried to use rspec and mocha together yet.
I''d like some help from people with experience in either in getting
these going...
2006 Sep 11
4
Using rspec and mocha
...ing framework, whereas Mocha is. So I''d like to play to both of
their strengths and use rspec as my testing/specification framework
and Mocha do to mocks.
I installed the plugins for each, and whenever I try to mock a method
with Mocha I get a nil object error at
plugins/mocha/lib/stubba/setup_and_teardown.rb at line 18. I''ve
looked through all the files referenced in the trace and haven''t been
able to figure anything out.
Not sure if anyone else has tried to use rspec and mocha together yet.
I''d like some help from people with experience in either in getting
these going...
2010 Mar 22
5
UnitTesting-Action view testcase is failed
...ocal/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:90:in
`run''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:276:in
`run_callbacks''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/testing/setup_and_teardown.rb:60:in
`run''
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run''
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each''
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run''
/usr/local/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in
`run_...
2009 Feb 02
2
looking for help with NoMethodError: undefined method `key?' for #<String:0x4795488>
...ivesupport-2.2.2/
lib/active_support/callbacks.rb:90:in `run''
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/
lib/active_support/callbacks.rb:277:in `run_callbacks''
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/
lib/active_support/testing/setup_and_teardown.rb:58:in `run''
---------------------------------
My entity model is dead simple at the moment-
class Entity < ActiveRecord::Base
end
My DB table (entities) has these fields-
id
created_at
updated_at
taxa_order
taxa_family
taxa_genus
taxa_species
common_name
short_description
descrip...
2011 Jul 11
36
has_many and belongs_to association
Hi ,
I want to test the one below but I got the problem
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
in my test
context "test"do
should have_many :phrases
end
in language.rb
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
error is
1) Failure:
test: check has_many and belongs_to