Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

Commit

Permalink
Clean up tests a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Dec 1, 2011
1 parent e88842d commit 157e201
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions spec/fistface_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ def app

context "when I GET a font stylesheet by convention of font-name.css" do
before do
Timecop.freeze(Date.parse("January 1, 2011"))
Timecop.freeze(first_of_january)

get "chunk.css"
end

after { Timecop.return }

it "responds with HTTP status OK" do
last_response.should be_ok
end
Expand Down Expand Up @@ -41,11 +43,13 @@ def app

context "when I GET a font file by convention of font-name/font-name.ttf" do
before do
Timecop.freeze(Date.parse("January 1, 2011"))
Timecop.freeze(first_of_january)

get "chunk/chunk.ttf"
end

after { Timecop.return }

it "responds with HTTP status OK" do
last_response.should be_ok
end
Expand Down Expand Up @@ -98,4 +102,8 @@ def app
last_response.content_type.should == 'image/svg+xml'
end
end

def first_of_january
Date.parse("January 1, 2011")
end
end

0 comments on commit 157e201

Please sign in to comment.