[Rails] Is the test database cleared after each test?

2016-12-02 Thread 'krfg' via Ruby on Rails: Talk
Some of my tests would not pass if the test database was not cleared after the previous tests. For instance my application, based on the Michael Hartl's tutorial, gives users the opportunity to create an association between two users. The web interface is configured to use or not use Ajax. There

Re: [Rails] Is the test database cleared after each test?

2016-12-02 Thread Dave Aronson
On Fri, Dec 2, 2016 at 11:57 AM, 'krfg' via Ruby on Rails: Talk wrote: > Some of my tests would not pass if the test database was not cleared after > the previous tests. The important thing is that every test start from a *known state*. The easiest state to

Re: [Rails] Is the test database cleared after each test?

2016-12-02 Thread 'krfg' via Ruby on Rails: Talk
On Friday, December 2, 2016 at 6:45:12 PM UTC+1, Dave Aronson wrote: > > > The important thing is that every test start from a *known state*. > The easiest state to achieve and reason about, is empty. > And what is Rails' default behaviour? I only guess that it empties all tables after each

Re: [Rails] Is the test database cleared after each test?

2016-12-02 Thread Dave Aronson
On Fri, Dec 2, 2016 at 12:56 PM, 'krfg' via Ruby on Rails: Talk wrote: > On Friday, December 2, 2016 at 6:45:12 PM UTC+1, Dave Aronson wrote: >> >> The important thing is that every test start from a *known state*. >> The easiest state to achieve and reason

[Rails] I have issue in Rails Server

2016-12-02 Thread Furqan Ahmad
it was worked fine before i installed sqlite3 by this method Install the Ruby Devkit for your setup (DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe for me since I

Re: [Rails] Is the test database cleared after each test?

2016-12-02 Thread 'krfg' via Ruby on Rails: Talk
I will have a look at database_cleaner. Many thanks for your suggestion. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] I have issue in Rails Server

2016-12-02 Thread Colin Law
On 2 December 2016 at 18:26, Furqan Ahmad wrote: > > > > it was worked fine before i installed sqlite3 by this method > Install the Ruby Devkit for

Re: [Rails] I have issue in Rails Server

2016-12-02 Thread Furqan Ahmad
First the code was not copy from cmd or may be i don't know how to copy from there and second of all yes there are 3 to 4 apps are there On Dec 3, 2016 2:43 AM, "Colin Law" wrote: > On 2 December 2016 at 18:26, Furqan Ahmad wrote: > >> >>

Re: [Rails] Is the test database cleared after each test?

2016-12-02 Thread Colin Law
On 2 December 2016 at 16:57, 'krfg' via Ruby on Rails: Talk wrote: > Some of my tests would not pass if the test database was not cleared after > the previous tests. > For instance my application, based on the Michael Hartl's tutorial, gives > users the

Re: [Rails] I have issue in Rails Server

2016-12-02 Thread Colin Law
On 2 December 2016 at 21:46, Furqan Ahmad wrote: > First the code was not copy from cmd or may be i don't know how to copy > from there and second of all yes there are 3 to 4 apps are there > First, on Ubuntu to copy from the terminal use Ctrl+Shift+C, I don't know whether

Re: [Rails] I have issue in Rails Server

2016-12-02 Thread Furqan Ahmad
C:\Sites\demo_app>rails s C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.12/lib/sqlite3. rb:6:in `require': 126: The specified module could not be found. - C:/RailsIns taller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.12/lib/sqlite3/sqlite3_nat ive.so (LoadError)