Refactoring of specs

* split the one large spec file in multiple small, one for each model
* helper for getting dump object in tests
This commit is contained in:
Marc Remolt
2011-06-05 13:09:06 +02:00
parent e1c60163e4
commit ddb65040a7
8 changed files with 264 additions and 220 deletions

11
spec/support/helpers.rb Normal file
View File

@@ -0,0 +1,11 @@
module Refinery::WordPress::SpecHelpers
def test_dump
file_name = File.realpath(File.join(File.dirname(__FILE__), '../fixtures/wordpress_dump.xml'))
Refinery::WordPress::Dump.new(file_name)
end
end
RSpec.configure do |config|
config.include Refinery::WordPress::SpecHelpers
end