spec/hurricane_spec.rb in hurricane-0.0.0 vs spec/hurricane_spec.rb in hurricane-0.0.1
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe 'Hurricane' do
- FILE = File.open('./wordpress.2010-07-12.xml', 'r')
+ FILE = File.open('./wordpress_file.xml', 'r')
@blog = Hurricane.from(FILE)
it 'should be offer blog title' do
@blog.title.should.equal 'Daniel Tamiosso'
end
@@ -16,11 +16,11 @@
it 'should be offer blog description' do
@blog.description.should.equal 'Only me'
end
it 'should be offer blog created date' do
- @blog.created_at.should.equal 'Wed, 15 Jul 2009 23:32:34 +0000'
+ @blog.created_at.rfc2822.should.equal 'Wed, 15 Jul 2009 20:32:34 -0300'
end
it 'should be offer blog categories' do
@blog.categories.should.include? 'agil'
@blog.categories.should.include? 'boas-praticas'
@@ -43,9 +43,9 @@
it 'should be get a post with created date' do
@blog.posts.first.created_at.should.equal 'Thu, 09 Jul 2009 16:50:14 +0000'
end
it 'should be get a post with description' do
- @blog.posts.first.description.should.equal 'Texto do post.'
+ @blog.posts.first.description.should.equal 'Post text'
end
end
\ No newline at end of file