Ruby on Rails Sunday, November 21, 2010

Frederick Cheung wrote in post #962968:
> On Nov 21, 3:46pm, Neil Bye <li...@ruby-forum.com> wrote:
>> Yes it works fine.
> My guess is that somewhere in your app you have a ruby script
> (probably called index.rb) that expects to be invoked on the command
> line with some arguments.
> Fred

I think you've got it, that gets rid of the line

ruby index.rb <data dir> <index dir>

which I think was the problem. Thanks everyone.

When I run rake test:units now I get


(See full trace by running task with --trace)
neil@baby6:~/*****$ rake test:units
(in /home/neil/******)
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/1.8/rake/rake_test_loader.rb" "test/unit/story_test.rb"
Loaded suite /usr/lib/ruby/1.8/rake/rake_test_loader
Started
E
Finished in 0.411785 seconds.

1) Error:
test_should_be_valid_with_story(StoryTest):
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table:
avatars: DELETE FROM "avatars" WHERE 1=1

....


1 tests, 0 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ru...]

(See full trace by running task with --trace)

So I think I just have to sort my tests out now.

Gleble

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment