moving model spec to good old fashioed minitests
This commit is contained in:
11
test/helpers/card_helper.rb
Normal file
11
test/helpers/card_helper.rb
Normal 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
11
test/helpers/cleanup.rb
Normal 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
|
11
test/helpers/section_helper.rb
Normal file
11
test/helpers/section_helper.rb
Normal file
@ -0,0 +1,11 @@
|
||||
module Merged
|
||||
module SectionHelper
|
||||
def first
|
||||
Section.first
|
||||
end
|
||||
def last
|
||||
Section.last
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user