Guest User

Untitled

a guest
Dec 11th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. require "spec_helper"
  2.  
  3. describe Project do
  4. fixtures :projects
  5.  
  6. before(:each) do
  7. @project = Project.new
  8. end
  9.  
  10. it "should be valid" do
  11. @project.should be_valid
  12. end
  13.  
  14. it "sholud get last 3" do
  15. last_three = @project.get_last(3)
  16. last_three[0].id.should eq(3)
  17. last_three[2].id.should eq(1)
  18. end
  19.  
  20. it "should contain image" do
  21.  
  22. end
  23.  
  24. end
Add Comment
Please, Sign In to add comment