Ruby On Rails Classroom image

prateek  darmwal / 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
prateek  darmwal

Skills    Ruby On Rails

Qualifications :- High School - S.K.M. Sn. Sec. School, Haldwani, College/University - Graphic Era Hill University, Bhimtal,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:- I like to explore new technologies. I have skills in ruby on rails, php5, cakephp, jquery, javascript, html/css, java, c & c++. I love coding
Explore
 

  Students (0)