Ruby On Rails Classroom image

Pooja  Negi / Student / 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
Pooja   Negi

Skills    Ruby On Rails

Qualifications :- High School - SSN high school, College/University - HNBGU, College/University - SRHU,
Location :-Ranipokhari,Rishikesh,Uttarakhand,India
Description:- Student
Explore
 

  Students (0)