Ruby On Rails Classroom image

Neeraj  Amoli / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2|
Lessons:- The Basic Model

 

We can get these tests to pass by running the microposts migration and preparing the test database:

$  bundle exec rake db:migrate
$  bundle exec rake db:test:prepare

 

The result is a Micropost model with the structure shown in Figure 10.1.
             You should verify that the tests pass: 

$  bundle exec rspec spec/models/micropost spec.rb

 

Even though the tests are passing, you might have noticed this code:

 

 

The comment indicates that the code in the before block is wrong. See if you can guess why. We’ll see the answer in the next section. 

 
 
 
image
Neeraj  Amoli

Skills    Ruby On Rails

Qualifications :-
Location :-Dehradun,Dehradun,Uttrakhand,India
Description:-

I have 3 year experience as a Software Engineer. My Skilled are Android Development (Java), ROR Development .   


Explore
 

  Students (0)