Here''s an alternative in-depth treatment on setting upo rails on Debian (Ubuntu, Kubuntu, ... ), may be interesting to follow through in more detail for some: The Perfect Rails/debian/lighttpd Stack... ( http://brainspl.at/pages/perfect_vps ) Victor Kane http://awebfactory.com.ar On 3/25/06, rails-request@lists.rubyonrails.org < rails-request@lists.rubyonrails.org> wrote:> > Send Rails mailing list submissions to > rails@lists.rubyonrails.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.rubyonrails.org/mailman/listinfo/rails > or, via email, send a message with subject or body ''help'' to > rails-request@lists.rubyonrails.org > > You can reach the person managing the list at > rails-owner@lists.rubyonrails.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Rails digest..." > > > Today''s Topics: > > 1. Re: upgrade to 1.1RC on ubuntu breezy (Victor Kane) > 2. Re: Your Ruby IDE (Victor Kane) > 3. Re: ANN: capistrano-runit-tasks 0.2.0 (Roberto Saccon) > 4. dynamic set_table_name for achives (Kris) > 5. Re: Unit test fails on different line the second time it''s > run (Nick Stuart) > 6. Re: innodb vs myisam (Robby Russell) > 7. Re: Unit test fails on different line the second time it''s r > (Wiebe Cazemier) > 8. Question about upgrading to rails rc1.1 (uranus) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 25 Mar 2006 11:07:39 -0300 > From: "Victor Kane" <victorkane@gmail.com> > Subject: [Rails] Re: upgrade to 1.1RC on ubuntu breezy > To: rails@lists.rubyonrails.org > Message-ID: > <ff176450603250607i25895f20lf2d9de456ef3092b@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Yes, the problem is debian in all its variation doesn''t install a series > of > libraries. > I have just installed a rails application on Kubuntu breezy, I did the > following (right out of my project notes): > ruby-ize debian!!! > > aptitude install ruby libzlib-ruby rdoc irb > > untar rubygems, then: > cd rubygems-0.8.11 > ruby setup.rb all > gem install rails --include-dependencies > > Then everything was normal, I had no need to make any changes in apt-get, > or > upgrade to a different distribution. > > cheers, > > Victor Kane > http://awebfactory.com.ar > > Message: 2 > > Date: Sat, 25 Mar 2006 13:00:15 +0000 > > From: "Nicholas H.Tollervey" <ntoll@ntoll.org> > > Subject: Re: [Rails] upgrade to 1.1RC on ubuntu breezy > > To: rails@lists.rubyonrails.org > > Message-ID: <1143291615.9493.8.camel@localhost.localdomain> > > Content-Type: text/plain > > > > Hi, > > > > I''ve just been caught out with this. > > > > On any Debian based distro (like ubuntu) always install Ruby via apt, > > install gems from source and then gem install rake and rails (and so > > on). > > > > The problem with Breezy is that although the Ruby version is 1.8.2 the > > ruby package reports it being 1.8.3 which Rails won''t play with. As a > > result, you have only one option: > > > > Upgrade to Dapper Drake. > > > > This is a very simple change to your /etc/apt/sources.list file (replace > > all reference to breezy with dapper). apt-get dist-upgrade and apt-get > > update should do the trick with the following caveat: dapper is still in > > pre-release so might not work as expected or seem incomplete (the > > current splash screen when logging into Gnome is a good example). I > > upgraded last night and everything seems to be working well with 1.1rc1 > > plus the bugs in Ubuntu''s version of Ruby (like the ruby bindings to > > imagemagik) should be fixed (I''ve not checked all of them yet). On > > dapper Ruby is at 1.8.4. > > > > The other option might be to check out another distro like Fedora or > > SuSE (as I did last night) but, to my mind, they''re nowhere near as easy > > as Debian/Ubuntu to use - hence my reinstall of breezy and upgrade to > > dapper. Your mileage might vary. > > > > Best of luck and have fun! > > > > Nicholas > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/93bb28a7/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Sat, 25 Mar 2006 11:09:23 -0300 > From: "Victor Kane" <victorkane@gmail.com> > Subject: [Rails] Re: Your Ruby IDE > To: rails@lists.rubyonrails.org > Message-ID: > <ff176450603250609n164ea3c1s2d0594757260e8c0@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Sorry, this is in relation to the question on Ruby on Rails IDE > > Message: 3 > > Date: Sat, 25 Mar 2006 10:05:09 -0300 > > From: "Victor Kane" <victorkane@gmail.com> > > Subject: [Rails] Re: Rails Digest, Vol 18, Issue 654 > > To: rails@lists.rubyonrails.org > > Message-ID: > > <ff176450603250505u4230c334x4ec12489b6d273e@mail.gmail.com> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Radrails! Certainly complies with what you are looking for and much > more. > > (Ctrl-Shift-V to toggle the editor between Model and View, for example). > > Runs as a standalone application, or as a feature (plugin) on the > Eclipse > > platform. Cross platform either way. > > > > Then there''s the cost: it''s free! > > > > RadRails: http://www.radrails.org/ > > > > (Just one the award for best open source Eclipse developer tool, by the > > way). > > > > I have written (am in the process of finishing) a tutorial with many > > screenshots which includes how to get started with RadRails, which you > can > > find at > > http://wiki.awebfactory.com.ar/awebfactory/published/RadRailsTutorials. > It > > does show the installation process as well. Or else get the standalone > if > > you don''t need other tools in Eclipse. > > > > Victor Kane, > > http://awebfactory.com.ar > > > > > > > > Message: 2 > > > Date: Sat, 25 Mar 2006 13:25:31 +0100 > > > From: Stewart Matheson <smathe2@hotmail.com> > > > Subject: [Rails] Your Ruby IDE > > > To: rails@lists.rubyonrails.org > > > Message-ID: <6670a1d9b32e498c060208de9f78911f@ruby-forum.com> > > > Content-Type: text/plain; charset=utf-8 > > > > > > Just a poll here i am looking for a good IDE for rails and wondering > > > what you guys use? > > > > > > features i like in an ide > > > > > > code highlites > > > auto code complete > > > file browser > > > > > > Currently i am using dreamwever but the code highliting is really bad > > > its also a pain to set up other doucment types such as .yml data > config. > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/694a9e1c/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Sat, 25 Mar 2006 11:10:07 -0300 > From: "Roberto Saccon" <rsaccon@gmail.com> > Subject: Re: [Rails] ANN: capistrano-runit-tasks 0.2.0 > To: rails@lists.rubyonrails.org > Message-ID: > <eb4177b00603250610l263fbd4eyd62e41ff350eb219@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Chris, thanks for the clarifications > -- > Roberto Saccon <http://rsaccon.com> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/a8b404d0/attachment-0001.html > > ------------------------------ > > Message: 4 > Date: Sat, 25 Mar 2006 15:11:38 +0100 > From: Kris <kris@alternativefocusmedia.com> > Subject: [Rails] dynamic set_table_name for achives > To: rails@lists.rubyonrails.org > Message-ID: <76accf48af492804dfdd115e8bad7421@ruby-forum.com> > Content-Type: text/plain; charset=utf-8 > > How can I pass something to set_table_name so that I can switch tables > on the fly for accessing archive data? > > If I could access sessions inside a model I would do something like: > > if @session[:current_period] > set_table_name "statistics_" + @session[:archive_year] > else > set_table_name "statistics_" + Date.now.year > end > > But since I cannot access the session from within a model how do I tell > the model to archive data which is held in a different table eg. > "statistics_2005" ? > > > Many thanks, K. > > > -- > Posted via http://www.ruby-forum.com/. > > > ------------------------------ > > Message: 5 > Date: Sat, 25 Mar 2006 09:25:34 -0500 > From: "Nick Stuart" <nicholas.stuart@gmail.com> > Subject: Re: [Rails] Unit test fails on different line the second time > it''s run > To: rails@lists.rubyonrails.org > Message-ID: > <ad05e8bf0603250625i1c53f226u7b9160f7dc58c260@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Some actual code from the test would help here. In practice the test runs > are completely separate from each other, because as you said, they are > running in transactions. Have you watched the test.log file to see whats > getting spit out while you run the test? It can be very informative. > > -Nick > > On 3/25/06, Wiebe Cazemier <halfgaar@gmail.com> wrote: > > > > I''ve got a very peculiar problem with unit tests. First, I clone my > > development database with "rake clone_structure_to_test", then I run my > > test with "ruby investment_product_score_override_test.rb". It fails on > > line 68. Then, every test run after this, fails consistently on line 34. > > > > How is this possible? I don''t use fixtures and I don''t use hardcoded > > id''s or whatever. Unit tests are performed in a transaction, which is > > rolled back when the test is done. So, how can the data of the first run > > influence the second run? As far as I can see, the only thing that > > changes, are the sequences, which shouldn''t be a problem, since I don''t > > use hardcoded id''s. > > > > Is there something else that lingers in the DB after a test is run? > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/c20c5601/attachment-0001.html > > ------------------------------ > > Message: 6 > Date: Sat, 25 Mar 2006 06:30:49 -0800 > From: Robby Russell <robby.lists@planetargon.com> > Subject: Re: [Rails] innodb vs myisam > To: rails@lists.rubyonrails.org, loaf@isness.org > Message-ID: <1143297049.24535.200.camel@linus> > Content-Type: text/plain > > On Fri, 2006-03-24 at 00:43 -0500, Dorian Mcfarland wrote: > > 1. are transactions in activerecord dependent on innodb or do they > > recreate that functionality? > > Transactions in Rails require that you use a database that supports > transactions. With MySQL, you need to use InnoDB (which Oracle now > owns...). > > > 2. if I did stick with innodb would there be a workaround for > > effective text searching? > > You need to do some fun stuff to make that work. > > If you aren''t forced to stay on MySQL, you might consider another open > source database... PostgreSQL. > > Transactional support + tsearch2 = relational data integrity + smart > full text searching. > > More info: > > - http://www.postgresql.org/ > - http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/ > > > -Robby > > -- > /************************************************************** > * Robby Russell, Founder & Executive Director * > * PLANET ARGON, LLC | www.planetargon.com * > * Ruby on Rails Development, Consulting, and Hosting * > * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * > * blog: www.robbyonrails.com | book: www.programmingrails.com * > ***************************************************************/ > > > > ------------------------------ > > Message: 7 > Date: Sat, 25 Mar 2006 15:45:36 +0100 > From: Wiebe Cazemier <halfgaar@gmail.com> > Subject: [Rails] Re: Unit test fails on different line the second time > it''s r > To: rails@lists.rubyonrails.org > Message-ID: <d90bba9e7155b7f8cce5f9a98ab2b7b2@ruby-forum.com> > Content-Type: text/plain; charset=utf-8 > > Nick Stuart wrote: > > Some actual code from the test would help here. In practice the test > > runs > > are completely separate from each other, because as you said, they are > > running in transactions. Have you watched the test.log file to see whats > > getting spit out while you run the test? It can be very informative. > > I deliberatly left out code, and tried to make a general description, > because I''m quite sure the code won''t help. There are extenstive > database triggers which modify the data, views to access tables, and the > code itself would require a lot of explanation. I was hoping someone > here had similair experiences, or would be able to give pointers where > to look. > > I have diffed the test logs. They don''t show anything different, except > that the statements produced by the code in the teardown methods are > executed earlier, since the second run, the test fails earlier. > > > > > -- > Posted via http://www.ruby-forum.com/. > > > ------------------------------ > > Message: 8 > Date: Sat, 25 Mar 2006 16:05:53 +0100 > From: uranus <uranus.public@gmail.com> > Subject: [Rails] Question about upgrading to rails rc1.1 > To: rails@lists.rubyonrails.org > Message-ID: <511fedb7f50ee35da45270b109f57c35@ruby-forum.com> > Content-Type: text/plain; charset=utf-8 > > My current under-developed project is using rails 1.0 and now plan to > upgrade to rails rc1.1,the project uses the Rails-engine and > Login-engine as the login module,when I update the rails according to > > http://weblog.rubyonrails.org/articles/2006/03/22/rails-1-1-release-candidate-1-available > The project still can not be started,anybody can tell me the reason?very > thanksful!And following is the failed log: > > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008 > /lib/active_support/depen > dencies.rb:30:in `depend_on'': stack level too deep (SystemStackError) > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_ > support/dependencies.rb:74:in `require_dependency'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_ > support/dependencies.rb:104:in `rake_original_const_missing'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1761:in `cons > t_missing'' > from > ./script/../config/../vendor/plugins/engines/lib/dependencies_exten > sions.rb:28:in `require_or_load'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_ > support/dependencies.rb:30:in `depend_on'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_ > support/dependencies.rb:74:in `require_dependency'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_ > support/dependencies.rb:104:in `rake_original_const_missing'' > from > c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1761:in `cons > t_missing'' > ... 725 levels... > from > c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/commands/server > .rb:34 > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re > quire'' > from > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_ > support/dependencies.rb:149:in `require'' > from script/server:3 > > -- > Posted via http://www.ruby-forum.com/. > > > ------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > End of Rails Digest, Vol 18, Issue 656 > ************************************** >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/d0a7750d/attachment-0001.html
The properly html formated version of that tutorial is
http://brainspl.at/rails_stack.html
Cheers-
-Ezra
_____
From: Victor Kane [mailto:victorkane@gmail.com]
To: rails@lists.rubyonrails.org
Sent: Sat, 25 Mar 2006 07:32:39 -0800
Subject: [Rails] Re: Rails Digest, Vol 18, Issue 656
Here''s an alternative in-depth treatment on setting upo rails on Debian
(Ubuntu, Kubuntu, ... ), may be interesting to follow through in more detail for
some:
The Perfect Rails/debian/lighttpd Stack... (
http://brainspl.at/pages/perfect_vps )
Victor Kane
http://awebfactory.com.ar
On 3/25/06, rails-request@lists.rubyonrails.org
<rails-request@lists.rubyonrails.org> wrote: Send Rails mailing list
submissions to
rails@lists.rubyonrails.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.rubyonrails.org/mailman/listinfo/rails
or, via email, send a message with subject or body ''help'' to
rails-request@lists.rubyonrails.org
You can reach the person managing the list at
rails-owner@lists.rubyonrails.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Rails digest..."
Today''s Topics:
1. Re: upgrade to 1.1RC on ubuntu breezy (Victor Kane)
2. Re: Your Ruby IDE (Victor Kane)
3. Re: ANN: capistrano-runit-tasks 0.2.0 (Roberto Saccon)
4. dynamic set_table_name for achives (Kris)
5. Re: Unit test fails on different line the second time it''s
run (Nick Stuart)
6. Re: innodb vs myisam (Robby Russell)
7. Re: Unit test fails on different line the second time it''s r
(Wiebe Cazemier)
8. Question about upgrading to rails rc1.1 (uranus)
----------------------------------------------------------------------
Message: 1
Date: Sat, 25 Mar 2006 11:07:39 -0300
From: "Victor Kane" <victorkane@gmail.com>
Subject: [Rails] Re: upgrade to 1.1RC on ubuntu breezy
To: rails@lists.rubyonrails.org
Message-ID:
<ff176450603250607i25895f20lf2d9de456ef3092b@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Yes, the problem is debian in all its variation doesn''t install a
series of
libraries.
I have just installed a rails application on Kubuntu breezy, I did the
following (right out of my project notes):
ruby-ize debian!!!
aptitude install ruby libzlib-ruby rdoc irb
untar rubygems, then:
cd rubygems-0.8.11
ruby setup.rb all
gem install rails --include-dependencies
Then everything was normal, I had no need to make any changes in apt-get, or
upgrade to a different distribution.
cheers,
Victor Kane
http://awebfactory.com.ar
Message: 2> Date: Sat, 25 Mar 2006 13:00:15 +0000
> From: "Nicholas H.Tollervey" <ntoll@ntoll.org>
> Subject: Re: [Rails] upgrade to 1.1RC on ubuntu breezy
> To: rails@lists.rubyonrails.org
> Message-ID: <1143291615.9493.8.camel@localhost.localdomain>
> Content-Type: text/plain
>
> Hi,
>
> I''ve just been caught out with this.
>
> On any Debian based distro (like ubuntu) always install Ruby via apt,
> install gems from source and then gem install rake and rails (and so
> on).
>
> The problem with Breezy is that although the Ruby version is 1.8.2 the
> ruby package reports it being 1.8.3 which Rails won''t play with.
As a
> result, you have only one option:
>
> Upgrade to Dapper Drake.
>
> This is a very simple change to your /etc/apt/sources.list file (replace
> all reference to breezy with dapper). apt-get dist-upgrade and apt-get
> update should do the trick with the following caveat: dapper is still in
> pre-release so might not work as expected or seem incomplete (the
> current splash screen when logging into Gnome is a good example). I
> upgraded last night and everything seems to be working well with 1.1rc1
> plus the bugs in Ubuntu''s version of Ruby (like the ruby bindings
to
> imagemagik) should be fixed (I''ve not checked all of them yet). On
> dapper Ruby is at 1.8.4.
>
> The other option might be to check out another distro like Fedora or
> SuSE (as I did last night) but, to my mind, they''re nowhere near
as easy
> as Debian/Ubuntu to use - hence my reinstall of breezy and upgrade to
> dapper. Your mileage might vary.
>
> Best of luck and have fun!
>
> Nicholas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/93bb28a7/attachment-0001.html
------------------------------
Message: 2
Date: Sat, 25 Mar 2006 11:09:23 -0300
From: "Victor Kane" <victorkane@gmail.com>
Subject: [Rails] Re: Your Ruby IDE
To: rails@lists.rubyonrails.org
Message-ID:
<ff176450603250609n164ea3c1s2d0594757260e8c0@mail.gmail.com >
Content-Type: text/plain; charset="iso-8859-1"
Sorry, this is in relation to the question on Ruby on Rails IDE
Message: 3> Date: Sat, 25 Mar 2006 10:05:09 -0300
> From: "Victor Kane" < victorkane@gmail.com>
> Subject: [Rails] Re: Rails Digest, Vol 18, Issue 654
> To: rails@lists.rubyonrails.org
> Message-ID:
> <ff176450603250505u4230c334x4ec12489b6d273e@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Radrails! Certainly complies with what you are looking for and much more.
> (Ctrl-Shift-V to toggle the editor between Model and View, for example).
> Runs as a standalone application, or as a feature (plugin) on the Eclipse
> platform. Cross platform either way.
>
> Then there''s the cost: it''s free!
>
> RadRails: http://www.radrails.org/
>
> (Just one the award for best open source Eclipse developer tool, by the
> way).
>
> I have written (am in the process of finishing) a tutorial with many
> screenshots which includes how to get started with RadRails, which you can
> find at
> http://wiki.awebfactory.com.ar/awebfactory/published/RadRailsTutorials. It
> does show the installation process as well. Or else get the standalone if
> you don''t need other tools in Eclipse.
>
> Victor Kane,
> http://awebfactory.com.ar
>
>
>
> Message: 2
> > Date: Sat, 25 Mar 2006 13:25:31 +0100
> > From: Stewart Matheson < smathe2@hotmail.com>
> > Subject: [Rails] Your Ruby IDE
> > To: rails@lists.rubyonrails.org
> > Message-ID: < 6670a1d9b32e498c060208de9f78911f@ruby-forum.com>
> > Content-Type: text/plain; charset=utf-8
> >
> > Just a poll here i am looking for a good IDE for rails and wondering
> > what you guys use?
> >
> > features i like in an ide
> >
> > code highlites
> > auto code complete
> > file browser
> >
> > Currently i am using dreamwever but the code highliting is really bad
> > its also a pain to set up other doucment types such as .yml data
config.
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/694a9e1c/attachment-0001.html
------------------------------
Message: 3
Date: Sat, 25 Mar 2006 11:10:07 -0300
From: "Roberto Saccon" < rsaccon@gmail.com>
Subject: Re: [Rails] ANN: capistrano-runit-tasks 0.2.0
To: rails@lists.rubyonrails.org
Message-ID:
<eb4177b00603250610l263fbd4eyd62e41ff350eb219@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Chris, thanks for the clarifications
--
Roberto Saccon <http://rsaccon.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/a8b404d0/attachment-0001.html
------------------------------
Message: 4
Date: Sat, 25 Mar 2006 15:11:38 +0100
From: Kris < kris@alternativefocusmedia.com>
Subject: [Rails] dynamic set_table_name for achives
To: rails@lists.rubyonrails.org
Message-ID: < 76accf48af492804dfdd115e8bad7421@ruby-forum.com>
Content-Type: text/plain; charset=utf-8
How can I pass something to set_table_name so that I can switch tables
on the fly for accessing archive data?
If I could access sessions inside a model I would do something like:
if @session[:current_period]
set_table_name "statistics_" + @session[:archive_year]
else
set_table_name "statistics_" + Date.now.year
end
But since I cannot access the session from within a model how do I tell
the model to archive data which is held in a different table eg.
"statistics_2005" ?
Many thanks, K.
--
Posted via http://www.ruby-forum.com/.
------------------------------
Message: 5
Date: Sat, 25 Mar 2006 09:25:34 -0500
From: "Nick Stuart" < nicholas.stuart@gmail.com>
Subject: Re: [Rails] Unit test fails on different line the second time
it''s run
To: rails@lists.rubyonrails.org
Message-ID:
<ad05e8bf0603250625i1c53f226u7b9160f7dc58c260@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Some actual code from the test would help here. In practice the test runs
are completely separate from each other, because as you said, they are
running in transactions. Have you watched the test.log file to see whats
getting spit out while you run the test? It can be very informative.
-Nick
On 3/25/06, Wiebe Cazemier <halfgaar@gmail.com>
wrote:>
> I''ve got a very peculiar problem with unit tests. First, I clone
my
> development database with "rake clone_structure_to_test", then I
run my
> test with "ruby investment_product_score_override_test.rb". It
fails on
> line 68. Then, every test run after this, fails consistently on line 34.
>
> How is this possible? I don''t use fixtures and I don''t
use hardcoded
> id''s or whatever. Unit tests are performed in a transaction, which
is
> rolled back when the test is done. So, how can the data of the first run
> influence the second run? As far as I can see, the only thing that
> changes, are the sequences, which shouldn''t be a problem, since I
don''t
> use hardcoded id''s.
>
> Is there something else that lingers in the DB after a test is run?
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/c20c5601/attachment-0001.html
------------------------------
Message: 6
Date: Sat, 25 Mar 2006 06:30:49 -0800
From: Robby Russell <robby.lists@planetargon.com>
Subject: Re: [Rails] innodb vs myisam
To: rails@lists.rubyonrails.org, loaf@isness.org
Message-ID: <1143297049.24535.200.camel@linus>
Content-Type: text/plain
On Fri, 2006-03-24 at 00:43 -0500, Dorian Mcfarland
wrote:> 1. are transactions in activerecord dependent on innodb or do they
> recreate that functionality?
Transactions in Rails require that you use a database that supports
transactions. With MySQL, you need to use InnoDB (which Oracle now
owns...).
> 2. if I did stick with innodb would there be a workaround for
> effective text searching?
You need to do some fun stuff to make that work.
If you aren''t forced to stay on MySQL, you might consider another open
source database... PostgreSQL.
Transactional support + tsearch2 = relational data integrity + smart
full text searching.
More info:
- http://www.postgresql.org/
- http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
-Robby
--
/**************************************************************
* Robby Russell, Founder & Executive Director *
* PLANET ARGON, LLC | www.planetargon.com *
* Ruby on Rails Development, Consulting, and Hosting *
* Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 *
* blog: www.robbyonrails.com | book: www.programmingrails.com *
***************************************************************/
------------------------------
Message: 7
Date: Sat, 25 Mar 2006 15:45:36 +0100
From: Wiebe Cazemier <halfgaar@gmail.com>
Subject: [Rails] Re: Unit test fails on different line the second time
it''s r
To: rails@lists.rubyonrails.org
Message-ID: <d90bba9e7155b7f8cce5f9a98ab2b7b2@ruby-forum.com>
Content-Type: text/plain; charset=utf-8
Nick Stuart wrote:> Some actual code from the test would help here. In practice the test
> runs
> are completely separate from each other, because as you said, they are
> running in transactions. Have you watched the test.log file to see whats
> getting spit out while you run the test? It can be very informative.
I deliberatly left out code, and tried to make a general description,
because I''m quite sure the code won''t help. There are
extenstive
database triggers which modify the data, views to access tables, and the
code itself would require a lot of explanation. I was hoping someone
here had similair experiences, or would be able to give pointers where
to look.
I have diffed the test logs. They don''t show anything different, except
that the statements produced by the code in the teardown methods are
executed earlier, since the second run, the test fails earlier.
--
Posted via http://www.ruby-forum.com/.
------------------------------
Message: 8
Date: Sat, 25 Mar 2006 16:05:53 +0100
From: uranus < uranus.public@gmail.com>
Subject: [Rails] Question about upgrading to rails rc1.1
To: rails@lists.rubyonrails.org
Message-ID: < 511fedb7f50ee35da45270b109f57c35@ruby-forum.com>
Content-Type: text/plain; charset=utf-8
My current under-developed project is using rails 1.0 and now plan to
upgrade to rails rc1.1,the project uses the Rails-engine and
Login-engine as the login module,when I update the rails according to
http://weblog.rubyonrails.org/articles/2006/03/22/rails-1-1-release-candidate-1-available
The project still can not be started,anybody can tell me the reason?very
thanksful!And following is the failed log:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_support/depen
dencies.rb:30:in `depend_on'': stack level too deep (SystemStackError)
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008 /lib/active_
support/dependencies.rb:74:in `require_dependency''
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_
support/dependencies.rb:104:in `rake_original_const_missing''
from
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1761:in `cons
t_missing''
from
./script/../config/../vendor/plugins/engines/lib/dependencies_exten
sions.rb:28:in `require_or_load''
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_
support/dependencies.rb:30:in `depend_on''
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_
support/dependencies.rb:74:in `require_dependency''
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_
support/dependencies.rb:104:in `rake_original_const_missing''
from
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1761:in `cons
t_missing''
... 725 levels...
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/commands/server
.rb:34
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire''
from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_
support/dependencies.rb:149:in `require''
from script/server:3
--
Posted via http://www.ruby-forum.com/.
------------------------------
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
End of Rails Digest, Vol 18, Issue 656
**************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/2ab4c3b4/attachment-0001.html