Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby on Rails project: BookShelf

Resources

Site plan

Models

  • User
  • Book
  • Comment
  • Rating

Recommended workflow

Branching

Branch when starting on something new. $git checkout -b something-new

Merge with master branch. $git checkout master $git merge something-new

Delete the obsolete branch. $git branch -d something-new

Testing - Red, Green, Refactor!

Writing the test. spec/controllers/pages_controller_spec.rb

... render_views

describe "GET 'about'" do it "should be successful" do get 'about' response.should be_success end

it "should have the right title" do get 'about' response.should have_selector("title", :content => "Bookshelf") end end

...

Run the test.

$rspec spec/

About

Store them books.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages