Permalink
Browse files

use Status instead of numbers in specs

  • Loading branch information...
1 parent 657c581 commit 12c1daa53bb64a107efc0c761290f28664b7222b @saturnflyer saturnflyer committed Jun 25, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/models/page_spec.rb
View
5 spec/models/page_spec.rb
@@ -229,10 +229,9 @@ def headers
it 'should be published status when published_at is in the past' do
#current time 01-29-2010
scheduled_time = '2010-1-1'
- @page = Page.new(page_params(:status_id => '90', :published_at => scheduled_time))
+ @page = Page.new(page_params(:status_id => Status[:scheduled].id, :published_at => scheduled_time))
@page.save
- @page.status_id.should == 100
-
+ @page.status_id.should == Status[:published].id
end
it "should answer the page's url" do

0 comments on commit 12c1daa

Please sign in to comment.