Hi,
I got very simple unit test (creates new object and checks if it’s
successfuly saved) that passes when I run only the file, which
contains this test, but fails when I run “rake test”.
Any ideas what can be wrong?
Hi,
I got very simple unit test (creates new object and checks if it’s
successfuly saved) that passes when I run only the file, which
contains this test, but fails when I run “rake test”.
Any ideas what can be wrong?
On 13 Mar 2008, at 21:06, szimek wrote:
Hi,
I got very simple unit test (creates new object and checks if it’s
successfuly saved) that passes when I run only the file, which
contains this test, but fails when I run “rake test”.
Tests tend to assume that each individual test is isolated from
subsequent ones. If this isn’t the case then you can see things
similar to what you describe.
A common one is having transactional fixtures turned on but the
database not supporting transactions (if you’re using mysql and it has
defaulted to myisam tables) and things like that.
Fred
On 13 Mar, 22:34, Frederick C. [email protected] wrote:
Tests tend to assume that each individual test is isolated from
–~–~---------~–~----~------------~-------~–~----~
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 athttp://groups.google.com/group/rubyonrails-smime.p7s
5KPobierz
Thanks! That was it.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs