On Tue, Nov 4, 2008 at 2:54 PM, Ashley Moran
<[EMAIL PROTECTED]>wrote:
>
> On Nov 04, 2008, at 10:15 pm, Mark Wilden wrote:
>
> I think it's actually simpler to do 'rake db:test:prepare' rather than
>> migrate the test database. Migrations can be a pain when you've only got one
>> database to wor
On Nov 04, 2008, at 10:15 pm, Mark Wilden wrote:
I think it's actually simpler to do 'rake db:test:prepare' rather
than migrate the test database. Migrations can be a pain when you've
only got one database to worry about, much less two. The
db:test:prepare task extracts the schema from the
On Tue, Nov 4, 2008 at 1:10 PM, Fernando Perez <[EMAIL PROTECTED]> wrote:
> Thanks Ashley. And I am sure I will forget to run migration for the test
> environment each time I make changes to it. I will create a dumb script
> that looks like:
> --
> RAILS_ENV=production rake db:migrate
> RAILS_ENV=
Thanks Ashley. And I am sure I will forget to run migration for the test
environment each time I make changes to it. I will create a dumb script
that looks like:
--
RAILS_ENV=production rake db:migrate
RAILS_ENV=test rake db:migrate
...
It's not DRY but it's so easy to read with so little lines
On Nov 04, 2008, at 5:07 pm, Fernando Perez wrote:
Doh! I forgot to run the migrations in the newly created DB.
Hi Fernando
I used to do this all the time, so I made a db:migrate:all task[1]
that means you don't have to remember which version which DB is on.
Mine is for Merb, but I can
Fernando Perez <[EMAIL PROTECTED]> writes:
> Here is a very simple spec:
> --
> require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
>
> describe Product, "The Product model" do
>
> describe "When a new blank product object gets created" do
> before(:each) do
> @product
>
> On Tue, Nov 4, 2008 at 11:33 AM, Fernando Perez <[EMAIL PROTECTED]>
> wrote:
>
> > @product = Product.new
>
> > PGError: ERROR: relation "products" does not exist
>
> > I don't understand why RSpec is trying to look for some kind of
> > relation. In the spec I am simply calling Prod
Doh! I forgot to run the migrations in the newly created DB.
Thanks.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Tue, Nov 4, 2008 at 11:33 AM, Fernando Perez <[EMAIL PROTECTED]> wrote:
> Here is a very simple spec:
> --
> require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
>
> describe Product, "The Product model" do
>
> describe "When a new blank product object gets created" do
>befo
Here is a very simple spec:
--
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Product, "The Product model" do
describe "When a new blank product object gets created" do
before(:each) do
@product = Product.new
end
it "should not be valid" do
10 matches
Mail list logo