refinerycms-blog/spec/models/blog_posts_spec.rb
2010-11-23 09:34:11 +13:00

16 lines
334 B
Ruby

require 'spec_helper'
Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory}
describe BlogPost do
context "wiring up" do
before(:each) do
@post = Factory(:post)
end
it "saves to the database" do
@post.should_not be_nil
end
end
end