Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "spec_helper"
- describe Project do
- fixtures :projects
- before(:each) do
- @project = Project.new
- end
- it "should be valid" do
- @project.should be_valid
- end
- it "sholud get last 3" do
- last_three = @project.get_last(3)
- last_three[0].id.should eq(3)
- last_three[2].id.should eq(1)
- end
- it "should contain image" do
- end
- end
Add Comment
Please, Sign In to add comment