Ruby On Rails Classroom image

Neha  Jaggi / 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
Neha  Jaggi

Skills    Ruby On Rails

Qualifications :- High School - , College/University - Graphic Era Hill University, Dehradun, College/University - ,
Location :-Dehradun,Dehradun,UTTARAKHAND,India
Description:-

Experienced Software Developer with a demonstrated history of working in the Information Technology and services industry. Skilled in Web Technologies (Ruby on Rails, PostgreSQL, php, Laravel and AJAX). 


Explore
 

  Students (0)