John Sayeau wrote in post #966558:
> I am working my way through Agile web development with rails and I'm in
> the testing chapter.
> when I run the following test(or any other test)
> I'm new and not sure where to start looking.
Read the error message! It tells you what you need to know.
Bonus tip: once you finish the testing tutorial, check out RSpec as a
replacement for Test::Unit and factories (Machinist or FactoryGirl) as a
replacement for fixtures. They're much nicer tools than the ones
provided by the core team.
>
> require 'test_helper'
>
> class ProductTest < ActiveSupport::TestCase
> # Replace this with your real tests.
> test "the truth" do
> assert true
> end
> end
>
> I always get
>
> ActiveRecord::StatementInvalid: SQLite3::SQLException: table users has
> no column named image_url: INSERT INTO "users" ("created_at",
> "image_url", "title", "updated_at", "id", "description") VALUES
> ('2010-12-06 16:04:02', 'MyString', 'MyString', '2010-12-06 16:04:02',
> 298486374, 'MyText')
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.