Hello all, Has anyone experienced the instantiated fixtures being not-instantiated or set to nil on 0.14.2? I have this in test_helper.rb : self.use_instantiated_fixtures = true This in user.rb : class User < ActiveRecord::Base set_table_name "user_h_t" set_primary_key "user_id" end This in user_h_t.yml : bob: user_id: 1 tom: user_id: 2 at a breakpiont in test script : @bob => nil @tom => nil user(:bob) => nil user(:tom) => nil help? -- Peter Fitzgibbons _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
the defaults for fixture instantiation and transactionality have changed see http://www.clarkware.com/cgi/blosxom/2005/10/24 for more on this On 11/3/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > Has anyone experienced the instantiated fixtures being not-instantiated or > set to nil on 0.14.2? > > I have this in test_helper.rb : > self.use_instantiated_fixtures = true > > This in user.rb : > class User < ActiveRecord::Base > > set_table_name "user_h_t" > set_primary_key "user_id" > > end > > This in user_h_t.yml : > bob: > user_id: 1 > > tom: > user_id: 2 > > at a breakpiont in test script : > @bob > => nil > @tom > => nil > user(:bob) > => nil > user(:tom) > => nil > > help? > -- > Peter Fitzgibbons > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
On 11/3/05, Jean Helou <jean.helou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > the defaults for fixture instantiation and transactionality have > changed see http://www.clarkware.com/cgi/blosxom/2005/10/24 for more > on this > > On 11/3/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello all, > > > > Has anyone experienced the instantiated fixtures being not-instantiated > or > > set to nil on 0.14.2? > > > > I have this in test_helper.rb : > > self.use_instantiated_fixtures = true > > > > This in user.rb : > > class User < ActiveRecord::Base > > > > set_table_name "user_h_t" > > set_primary_key "user_id" > > > > end > > > > This in user_h_t.yml : > > bob: > > user_id: 1 > > > > tom: > > user_id: 2 > > > > at a breakpiont in test script : > > @bob > > => nil > > @tom > > => nil > > user(:bob) > > => nil > > user(:tom) > > => nil > > > > help? > > -- > > Peter Fitzgibbons > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >I have read the 1.0 changes before... please note my setup and results. -- Peter Fitzgibbons _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Shouldn''t that be user.yml instead of user_h_t.yml? On 11/3/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On 11/3/05, Jean Helou <jean.helou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > the defaults for fixture instantiation and transactionality have > > changed see http://www.clarkware.com/cgi/blosxom/2005/10/24 for more > > on this > > > > On 11/3/05, Peter Fitzgibbons < peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello all, > > > > > > Has anyone experienced the instantiated fixtures being > > not-instantiated or > > > set to nil on 0.14.2? > > > > > > I have this in test_helper.rb : > > > self.use_instantiated_fixtures = true > > > > > > This in user.rb : > > > class User < ActiveRecord::Base > > > > > > set_table_name "user_h_t" > > > set_primary_key "user_id" > > > > > > end > > > > > > This in user_h_t.yml : > > > bob: > > > user_id: 1 > > > > > > tom: > > > user_id: 2 > > > > > > at a breakpiont in test script : > > > @bob > > > => nil > > > @tom > > > => nil > > > user(:bob) > > > => nil > > > user(:tom) > > > => nil > > > > > > help? > > > -- > > > Peter Fitzgibbons > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > I have read the 1.0 changes before... please note my setup and results. > > -- > Peter Fitzgibbons > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- First they laugh at you, then they ignore you, then they fight you. Then you win. -- Mahatma Karamchand Gandhi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails