Skip to content

Commit

Permalink
fix test of rfc1123_date tag
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Aug 27, 2012
1 parent c21d7df commit 468b072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion spec/models/deprecated_tags_spec.rb
Expand Up @@ -108,7 +108,8 @@

describe "<r:rfc1123_date>" do
it 'should render an RFC1123-compatible date' do
page(:dated).should render('<r:rfc1123_date />').as('Wed, 11 Jan 2006 00:00:00 GMT')
@page.published_at = Time.new 2006, 1, 11
@page.should render('<r:rfc1123_date />').as('Wed, 11 Jan 2006 00:00:00 GMT')
end
end

Expand Down
4 changes: 0 additions & 4 deletions spec/models/standard_tags_spec.rb
Expand Up @@ -613,10 +613,6 @@
page.should render('<r:date format="%d %b %Y" />').as('11 Jan 2006')
end

it "should render an RFC1123-compatible date if the 'format' attribute is set to 'rfc1123'" do
page.should render('<r:date format="rfc1123" />').as('Wed, 11 Jan 2006 00:00:00 GMT')
end

it "should format the published date according to localized format" do
page.should render('<r:date format="short" />').as(I18n.l(page.published_at, :format => :short))
end
Expand Down

0 comments on commit 468b072

Please sign in to comment.