Skip to content

Instantly share code, notes, and snippets.

@gabebw
Created March 29, 2011 13:43
Show Gist options
  • Save gabebw/892378 to your computer and use it in GitHub Desktop.
Save gabebw/892378 to your computer and use it in GitHub Desktop.
its
context "with parsed time" do
before do
@time = output.first.time
end
subject { @time }
its(:year){ should == 2007 }
its(:month){ should == 9 }
its(:day){ should == 16 }
its(:hour){ should == 8 }
its(:min){ should == 37 }
its(:sec){ should == 10 }
its(:zone){ should == Time.now.zone }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment