# Can't run tests using ruby 1.9.0 and rails 2.1.2

**URL:** <https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115>\
**Category:** Rails\
**Created:** [November 12, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115 "2008-11-12T12:32:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 12, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/1 "2008-11-12T12:32:16Z")

</div>

I have just created my first rails app  
After having modified the generator script (see  
[http://rails.lighthouseapp.com/projects/8994/tickets/1176-scriptserver-make-an-error-in-ruby-19-because-of-defined-methods-change](http://rails.lighthouseapp.com/projects/8994/tickets/1176-scriptserver-make-an-error-in-ruby-19-because-of-defined-methods-change)  
)  
I have created controller and I now try to run the generated test, so I  
do:

ruby -Itest test/functional/kml\_controller\_test.rb but I get

But it fails with the below message.

Any help is appriciated.

/var/lib/gems/1.9.0/gems/activesupport-2.1.2/lib/active\_support/dependencies.rb:510:  
warning: nested repeat operator + and ? was replaced with ‘\*’  
Loaded suite test/functional/kml\_controller\_test  
Started  
/usr/lib/ruby/1.9.0/test/unit/ui/console/testrunner.rb:94:in `sub!': can't modify frozen string (RuntimeError) from /usr/lib/ruby/1.9.0/test/unit/ui/console/testrunner.rb:94:in `test\_started’  
from /usr/lib/ruby/1.9.0/test/unit/util/observable.rb:78:in  
`call' from /usr/lib/ruby/1.9.0/test/unit/util/observable.rb:78:in `block in notify\_listeners’  
from /usr/lib/ruby/1.9.0/test/unit/util/observable.rb:78:in  
`each' from /usr/lib/ruby/1.9.0/test/unit/util/observable.rb:78:in `notify\_listeners’  
from  
/usr/lib/ruby/1.9.0/test/unit/ui/testrunnermediator.rb:47:in `block in run_suite' from /var/lib/gems/1.9.0/gems/activesupport-2.1.2/lib/active_support/testing/setup_and_teardown.rb:28:in `run\_with\_callbacks’  
from /usr/lib/ruby/1.9.0/test/unit/testsuite.rb:34:in `block in run' from /usr/lib/ruby/1.9.0/test/unit/testsuite.rb:33:in `each’  
from /usr/lib/ruby/1.9.0/test/unit/testsuite.rb:33:in `run' from /usr/lib/ruby/1.9.0/test/unit/testsuite.rb:34:in `block in  
run’  
from /usr/lib/ruby/1.9.0/test/unit/testsuite.rb:33:in `each' from /usr/lib/ruby/1.9.0/test/unit/testsuite.rb:33:in `run’  
from  
/usr/lib/ruby/1.9.0/test/unit/ui/testrunnermediator.rb:46:in `run_suite' from /usr/lib/ruby/1.9.0/test/unit/ui/console/testrunner.rb:67:in `start\_mediator’  
from  
/usr/lib/ruby/1.9.0/test/unit/ui/console/testrunner.rb:41:in `start' from /usr/lib/ruby/1.9.0/test/unit/ui/testrunnerutilities.rb:29:in `run’  
from /usr/lib/ruby/1.9.0/test/unit/autorunner.rb:216:in `run' from /usr/lib/ruby/1.9.0/test/unit/autorunner.rb:12:in `run’  
from /usr/lib/ruby/1.9.0/test/unit.rb:278:in `block in \<top  
(required)\>’

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 12, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/2 "2008-11-12T13:15:23Z")

</div>

On 12 Nov 2008, at 11:32, Jarl F. wrote:

> I have just created my first rails app  
> After having modified the generator script (see  
> [#1176 script/server make an error in Ruby 1.9 because of defined? method's change - Ruby on Rails - rails](http://rails.lighthouseapp.com/projects/8994/tickets/1176-scriptserver-make-an-error-in-ruby-19-because-of-defined-methods-change)  
> )  
> I have created controller and I now try to run the generated test,  
> so I  
> do:

ruby 1.9 is somewhat in flux. You’ll want to be on edge rails to use it.

Fred

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 12, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/3 "2008-11-12T15:12:39Z")

</div>

Frederick C. wrote:

> On 12 Nov 2008, at 11:32, Jarl F. wrote:
> 
> > I have just created my first rails app  
> > After having modified the generator script (see  
> > [#1176 script/server make an error in Ruby 1.9 because of defined? method's change - Ruby on Rails - rails](http://rails.lighthouseapp.com/projects/8994/tickets/1176-scriptserver-make-an-error-in-ruby-19-because-of-defined-methods-change)  
> > )  
> > I have created controller and I now try to run the generated test,  
> > so I  
> > do:
> 
> ruby 1.9 is somewhat in flux. You’ll want to be on edge rails to use it.

Sorry english is not my native language and I am completely new ruby AND  
rails. What do you mean that ruby 1.9 is in flux.

By “You’ll want to be on edge rails to use it.” I guess you mean that  
using the latest rails gem is not new enough to run stable on ruby 1.9,  
it might be necessary to run a nightly rails bulid, is that true?

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 12, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/4 "2008-11-12T15:21:15Z")

</div>

On 12 Nov 2008, at 14:12, Jarl F. wrote:

> > > so I  
> > > do:
> > 
> > ruby 1.9 is somewhat in flux. You’ll want to be on edge rails to  
> > use it.
> 
> Sorry english is not my native language and I am completely new ruby  
> AND  
> rails. What do you mean that ruby 1.9 is in flux.

It’s changing. (and the latest is the 1.9.1 preview). Rails has been  
tracking it as best as it can, but the 2.1 branch was stabilised quite  
a while back

> 

> By “You’ll want to be on edge rails to use it.” I guess you mean that  
> using the latest rails gem is not new enough to run stable on ruby  
> 1.9,  
> it might be necessary to run a nightly rails bulid, is that true?

Yes. (the 2.2 release candidate is probably ok too)

Fred

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 12, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/5 "2008-11-12T20:30:30Z")

</div>

Jarl F. wrote:

> Changing??? 1.9.0 is a frozen released piece of software. development is  
> going on for the next release 1.9.1, so I am a bit confused.

Yugui (Yuki S.) announced the release of Ruby 1.9.1-preview 1:

```
This is a preview release of Ruby 1.9.1, which will be the first 

```

stable version of the Ruby 1.9 series.

Ruby 1.9.0 was a developmental release only. That was always made quite  
clear.

> A while back??? As far as I understand Ruby 1.9.0 was released  
> 2007-12-25 and Rails 2.1.0 was released 2008-05-31 and rails 2.1.{1,2}  
> even later, so is there a reason why rails 2.1.{0,1,2} was not  
> stabalised on the latest (at time of release) stable ruby (which was  
> 1.9.0 for all three rails releases)

Yes, there is a reason. Ruby 1.9.0 was not stable. Rails 2.1.x is based  
upon Ruby 1.8.6+ (I think, it actually might be 1.8.4+ and skipped 1.8.5  
for some reason).

> Does that mean that I shouldn’t expect 2.1.x series to be running on  
> ruby 1.9.0 at all? and what about 2.2.x series.

Once Ruby 1.9.1+ is finally released as a stable production version then  
Rails 2.2.x will, no doubt, support it (or vice versa) but until then  
only the the development version of Rails is likely to track anywhere  
near 1.9.x. I should not think it worth the trouble to develop a Rails  
app under Ruby 1.9.x at the moment unless you are purposely  
experimenting with Ruby itself.

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 13, 2008, 9:30am UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/6 "2008-11-13T09:30:19Z")

</div>

James B. wrote:

> Yugui (Yuki S.) announced the release of Ruby 1.9.1-preview 1:
> 
> ```
> This is a preview release of Ruby 1.9.1, which will be the first 
> 
> ```
> 
> stable version of the Ruby 1.9 series.
> 
> Ruby 1.9.0 was a developmental release only. That was always made quite  
> clear.

Thank you very much for this extra information, it was not found in the  
release announcement:  
[http://www.ruby-lang.org/en/news/2007/12/25/ruby-1-9-0-released/](http://www.ruby-lang.org/en/news/2007/12/25/ruby-1-9-0-released/)

That explains everything. I fully understand rails developers standpoint  
on ruby 1.9.x series now.

Again, thanks.

Jarl

---

<div class="post-metadata">

**Author:** ![jarl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://www.ruby-forum.com/u/jarl)\
**Post date:** [November 12, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115/7 "2008-11-12T19:54:56Z")

</div>

Thanks for the response.

Frederick C. wrote:

> On 12 Nov 2008, at 14:12, Jarl F. wrote:
> 
> > > > so I  
> > > > do:
> > > 
> > > ruby 1.9 is somewhat in flux. You’ll want to be on edge rails to  
> > > use it.
> > 
> > Sorry english is not my native language and I am completely new ruby  
> > AND  
> > rails. What do you mean that ruby 1.9 is in flux.
> 
> It’s changing. (and the latest is the 1.9.1 preview). Rails has been  
> tracking it as best as it can, but the 2.1 branch was stabilised quite  
> a while back

Changing??? 1.9.0 is a frozen released piece of software. development is  
going on for the next release 1.9.1, so I am a bit confused.

A while back??? As far as I understand Ruby 1.9.0 was released  
2007-12-25 and Rails 2.1.0 was released 2008-05-31 and rails 2.1.{1,2}  
even later, so is there a reason why rails 2.1.{0,1,2} was not  
stabalised on the latest (at time of release) stable ruby (which was  
1.9.0 for all three rails releases)

Does that mean that I shouldn’t expect 2.1.x series to be running on  
ruby 1.9.0 at all? and what about 2.2.x series.

Jarl
