Displaying 7 results from an estimated 7 matches for "setup_without_fixtures".
2006 May 22
1
Agile Web Dev unit test fails with fixture instance variable
...ook.id, @product.id
When I introduce this type of instance variable into my test, I get the
following error:
1) Error:
test_not_owner(GroupTest):
RuntimeError: Called id for nil, which would mistakenly be 4 -- if you
really wanted the id of nil, use object_id
test/unit/group_test.rb:8:in `setup_without_fixtures''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:548:in
`setup''
Line 8:
@group = Group.find(@alice_group.id)
where alice_group is my Group fixture.
I know there are a few issues with the testing section of the Agile book
- have I just...
2006 Jul 06
0
problema con i test automatizzati
...ctive_record/base.rb:955:in
`find_one''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:941:in
`find_from_ids''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:382:in
`find'' test/unit/product_test.rb:7:in `setup_without_fixtures''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:548:in
`setup''
2) Error:
test_validate(ProductTest):
ActiveRecord::RecordNotFound: Couldn''t find Product with ID=1
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_...
2006 Jan 14
0
testing template components
...up
assert true
end
end
Nope, that throws an error that makes me think I am headed in the wrong
direction-
1) Error:
test_get_menu(SidebarControllerTest):
NoMethodError: undefined method `new'' for
Navigation::Sidebar:Dependencies::LoadingModule
functional/sidebarTest.rb:9:in `setup_without_fixtures''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:523:in
`setup''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:521:in
`setup''
Here is the controller if that is of interest (basically copied out of the
b...
Can not test if model name is Tester in rails 2 (ArgumentError: wrong number of arguments (0 for 1))
2007 Dec 18
0
Can not test if model name is Tester in rails 2 (ArgumentError: wrong number of arguments (0 for 1))
...D:/web/Sites/demo/vendor/rails/actionpack/lib/action_controller/
test_case.rb:48:in `initialize''
D:/web/Sites/demo/vendor/rails/actionpack/lib/action_controller/
test_case.rb:48:in `new''
D:/web/Sites/demo/vendor/rails/actionpack/lib/action_controller/
test_case.rb:48:in `setup_without_fixtures''
D:/web/Sites/demo/vendor/rails/activerecord/lib/active_record/
fixtures.rb:979:in `full_setup''
D:/web/Sites/demo/vendor/rails/activerecord/lib/../../
activesupport/lib/active_support/testing/default.rb:7:in `run''
6 tests, 1 assertions, 0 failures, 1 errors
I do...
2006 Apr 28
0
Ferret failing to rebuild_index - occasionally unable to delete a file (_j.cfs)
...''
E:/rails/thatsprogress/config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:223:in
`new''
E:/rails/thatsprogress/config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:223:in
`rebuild_index''
E:/rails/thatsprogress/test/unit/item_test.rb:15:in
`setup_without_fixtures''
E:/rails/thatsprogress/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:554:in
`setup''
E:/rails/thatsprogress/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:552:in
`setup''
--
R.Livsey
http://livsey.org
2006 Apr 28
5
Ferret failing to rebuild_index - occasionally unable to del
...ize''
E:/rails/thatsprogress/config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:223:in
`new''
E:/rails/thatsprogress/config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:223:in
`rebuild_index''
E:/rails/thatsprogress/test/unit/item_test.rb:15:in
`setup_without_fixtures''
E:/rails/thatsprogress/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:554:in
`setup''
E:/rails/thatsprogress/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:552:in
`setup''
--
R.Livsey
http://livsey.org
--
Posted via http://www...
2006 Jan 30
5
Functional tests and dealing with login before_filter
...trange errors:
fixtures :regions
def setup
...
# I tried a few different things here...
session[:user] = { :attributes => {:user => "foo"} }
end
TypeError: Symbol as array index
regions_controller_test.rb:16:in `[]=''
regions_controller_test.rb:16:in `setup_without_fixtures''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:523:in
`setup''
Any advice appreciated.
Thanks,
Dan