From 114bfeafcface0dcc470f5bed055ddd0780c7cc3 Mon Sep 17 00:00:00 2001 From: amartincaro Date: Fri, 27 Dec 2013 20:29:38 +0100 Subject: [PATCH] Added terms and conditions creation in before suite (rspec). --- spec/spec_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c74b8c4..7f00e6e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -48,6 +48,12 @@ RSpec.configure do |config| DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation + # Create terms and conditions + Document.create(label: "t&c") do |doc| + doc.title = "Terms and Conditions" + doc.content = "blah blah blah" + end + end config.before(:each) do