Added terms and conditions creation in before suite (rspec).

This commit is contained in:
amartincaro
2013-12-27 20:29:38 +01:00
parent 21aa6d0561
commit 114bfeafcf
+6
View File
@@ -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