moving model spec to good old fashioed minitests

This commit is contained in:
2022-12-23 14:40:05 +02:00
parent 5c4123c012
commit f46634e3d1
23 changed files with 372 additions and 294 deletions

View File

@ -0,0 +1,11 @@
module Merged
module CardHelper
def first
Card.first
end
def last
Card.last
end
end
end

11
test/helpers/cleanup.rb Normal file
View File

@ -0,0 +1,11 @@
require "git"
module Merged
module Cleanup
def teardown
git = Git.open(Engine.root)
git.checkout_file("HEAD" , "test/dummy/merged")
[Page, Section, Card].each { |m| m.reload(true) }
end
end
end

View File

@ -0,0 +1,11 @@
module Merged
module SectionHelper
def first
Section.first
end
def last
Section.last
end
end
end