search for: booktest

Displaying 4 results from an estimated 4 matches for "booktest".

2009 May 24
6
belongs_to not saving foreign key
...lt; ActiveRecord::Base # name:string end class Book < ActiveRecord::Base # title:string belongs_to :author # author_id end And a simple test where i create a Book with an Author using the belongs_to and then update the foreign key directly: require ''test_helper'' class BookTest < ActiveSupport::TestCase test "foreign key updating" do a1 = Author.create! :name => ''author 1'' b = Book.create! :title => ''rails'', :author => a1 a2 = Author.create! :name => ''author 2'' b.update_attrib...
2006 Apr 25
3
rake test:units fails on Postgresql due to nil
Following the directions in: http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=2 I get through the: rake db:migrate With the tables created properly but then when I run the: rake test:units I get a failure: ActiveRecord::StatementInvalid: RuntimeError: ERROR C23502 Mnull value in column "title" violates not-null constraint FexecMain.c L1750
2006 Dec 04
5
ruby on rails ecommerce tests are failing, but why?
i am working through the Beginning Ruby on Rails Ecommerce book and on page 101 where it is talking about integration tests, i run test/integration/book_test.rb and it fails giving me the following error message: 1) Failure: test_book_administration(BookTest) [test/integration/book_test.rb:45:in `add_book'' test/integration/book_test.rb:11:in `test_book_administration'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/integration.rb:431:in `run'']: expected tag, but no tag found matching {:cont...
2004 Mar 01
5
Samba3.0.2a, MS Office (Excel), Save problem.
...d and saved with Excel. (usernames/filenames changed for security reasons). $ ls -l /home/users/bob/test/ total 2396 -r--rwx---+ 1 bob root 1188352 Mar 1 12:02 abc_sales.xls -rw-rwx---+ 1 bob root 1188352 Mar 1 12:33 xyz_sales.xls -r--rwx---+ 1 bob root 13824 Mar 1 12:27 booktest.xls -rwxrwx---+ 1 bob root 19968 Mar 1 12:27 sadfasdfasdfasdfasdf.doc $ getfacl /home/users/bob/test/ # file: home/users/bob/test # owner: bob # group: root user::rwx user:bob:rwx group::rwx group:domadm:rwx mask::rwx other::--- default:user::rwx default:user:bob:rwx default:group::r-x...