mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 19:23:59 -04:00
10 lines
301 B
Ruby
10 lines
301 B
Ruby
require 'spec_helper'
|
|
|
|
describe Update do
|
|
it "should be sorted in reverse order" do
|
|
Update.create! :subject => "first entry", :body => "blah", :user_id => 1
|
|
Update.create! :subject => "second entry", :body => "blah", :user_id => 1
|
|
Update.first.subject.should == "second entry"
|
|
end
|
|
end
|