search for: hhgttg

Displaying 2 results from an estimated 2 matches for "hhgttg".

2006 Aug 16
0
Testing has_many, :through relationships
...der < ActiveRecord::Base has_many :readings has_many :books, :through => :readings end class Reading < ActiveRecord::Base belongs_to :book belongs_to :reader end My spec is simply: context "Ben" do fixtures :readers, :books, :readings specify "should have read HHGTTG" do ben = readers(:Ben) ben.books.should_include books(:HHGTTG) end end And the spec fails with: TypeError in ''Ben should have read HHGTTG'' wrong argument type Book (expected Module) A quick test in the console reveals that: ben.books.include? Book.find(:first)...
2008 Oct 28
4
patch: list shared namespace
...blems: All of my tests so far involved a shared namespace of the form namespace shared { separator = / prefix = users/%%u/ location = maildir:.../var/mail/%%u:... subscriptions = no list = yes hidden = no } Also, let's assume two users, ford and arthur with ford's "INBOX/hhgttg" available to arthur as "users/ford/INBOX/hhgttg". Arthur may not list ford's INBOX, though. In the following the current user is always arthur. I found the following problems: - LIST response includes namespaces the user doesn't really have access to. E.g. if there&...