Re: [rspec-users] RailsExampleGroup

2008-05-23 Thread Ashley Moran
On 23 May 2008, at 21:35, Yi Wen wrote: Well, I use this for driving selenium RC. So the approach I am using is to setup some data, and then invoke selenium to interact with a test server. Apparently the test server uses another connection. Would you suggest a better way to handle this? It will

Re: [rspec-users] RailsExampleGroup

2008-05-23 Thread Yi Wen
Well, I use this for driving selenium RC. So the approach I am using is to setup some data, and then invoke selenium to interact with a test server. Apparently the test server uses another connection. Would you suggest a better way to handle this? It will be the same for doing functional testing on

Re: [rspec-users] RailsExampleGroup

2008-05-23 Thread Ashley Moran
On 23 May 2008, at 19:53, Yi Wen wrote: It's not in the database. It looks to me the data is not actually inserted into the DB at all, just somehow buffered somewhere. It's stored in a transaction, so the only place you can see the data is from the same connection. Make another connection

[rspec-users] RailsExampleGroup

2008-05-23 Thread Yi Wen
So I have a describe which is a subclass of RailsExampleGroup. I inserted some data into my database, and reconnect! my connection. Before reconnect, finding the data I just created is fine. The data cannot be found, after reconnection, the data is gone. It's not in the database. It looks to me the