# TextMate's command-R throwing errors

**URL:** <https://www.ruby-forum.com/t/textmates-command-r-throwing-errors/71675>\
**Category:** Rails\
**Created:** [October 10, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/textmates-command-r-throwing-errors/71675 "2006-10-10T18:13:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamie\_Orchard-Hays](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@Jamie\_Orchard-Hays](https://www.ruby-forum.com/u/Jamie_Orchard-Hays)\
**Post date:** [October 10, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/textmates-command-r-throwing-errors/71675/1 "2006-10-10T18:13:55Z")

</div>

I’ve been happily using TextMate’s command-R and command-shift-R to  
run unit and functional tests forever. Suddenly today, I’m getting  
this error:

NoMethodError: undefined method `use\_transactional\_fixtures=’ for  
Test::Unit::TestCase:Class  
at top level in test\_helper.rb at line 18

If I comment that line out, I just get the same undefined method error  
for instantiated\_fixtures.

If I run the tests on the command line, all is well. I’m at a loss as  
to what might be going on here.

Any insight appreciated!

Thanks,

Jamie O-H

---

<div class="post-metadata">

**Author:** ![Jamie\_Orchard-Hays](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@Jamie\_Orchard-Hays](https://www.ruby-forum.com/u/Jamie_Orchard-Hays)\
**Post date:** [October 10, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/textmates-command-r-throwing-errors/71675/2 "2006-10-10T19:58:29Z")

</div>

Have you installed any other textmate bundle or programs between the  
time it was working and when  
it started giving error messages?

There might be a conflict…

---

<div class="post-metadata">

**Author:** ![Jamie\_Orchard-Hays](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@Jamie\_Orchard-Hays](https://www.ruby-forum.com/u/Jamie_Orchard-Hays)\
**Post date:** [October 10, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/textmates-command-r-throwing-errors/71675/3 "2006-10-10T20:14:50Z")

</div>

Jamie Orchard-Hays wrote:

> I’ve been happily using TextMate’s command-R and command-shift-R to  
> run unit and functional tests forever. Suddenly today, I’m getting  
> this error:
> 
> NoMethodError: undefined method `use\_transactional\_fixtures=’ for  
> Test::Unit::TestCase:Class  
> at top level in test\_helper.rb at line 18
> 
> If I comment that line out, I just get the same undefined method error  
> for instantiated\_fixtures.
> 
> If I run the tests on the command line, all is well. I’m at a loss as  
> to what might be going on here.
> 
> Any insight appreciated!
> 
> Thanks,
> 
> Jamie O-H

I’ve had the same problem after updating Textmate, so I went back to my  
laptop, which had the not updated version and copied the script that  
allows you to run unit tests from within Textmate and it all worked  
well. Just paste the script below under Bundles, Bundle Editor, Edit  
Command, Ruby, Run focused unit test

method=$(${TM\_RUBY:=ruby} \<\<“EOF”  
n = ENV[‘TM\_LINE\_NUMBER’].to\_i

File.open(ENV[‘TM\_FILEPATH’]) do |f|  
f.read.split(“\n”)[0…n].reverse.each do |line|  
if line =~ /^\s_def ([\_a-z][\_a-z0-9]_[?!]?)/i  
print $1  
break  
end  
end  
end  
EOF)

${TM\_RUBY:=ruby} “$TM\_FILEPATH” --name=$method|pre

Hope it helps.

–  
Thiago J.  
acts\_as\_solr =\> [http://acts-as-solr.rubyforge.org](http://acts-as-solr.rubyforge.org)  
Query string action caching =\> [http://caching-plugin.rubyforge.org](http://caching-plugin.rubyforge.org)

---

<div class="post-metadata">

**Author:** ![Jamie\_Orchard-Hays](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@Jamie\_Orchard-Hays](https://www.ruby-forum.com/u/Jamie_Orchard-Hays)\
**Post date:** [October 10, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/textmates-command-r-throwing-errors/71675/4 "2006-10-10T20:56:47Z")

</div>

Well, in the end I believe it was a problem with a require command in  
my mocks/test/application.rb file. I had stubbed a method for the  
original that called a web service and run the all my tests from  
command line to test. I probably never ran any tests from textmate  
until today, a week later and the error I got didn’t make sense to me.  
Once I upgraded to ruby 1.8.5, I got better error reported which  
pointed to the required file not being present. That let me find the  
error. So all is well.

On another note, anyone know why RubyForge is down??

Jamie
