Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Added test for maglev_persistable(true) persisting modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
knub committed Mar 20, 2013
1 parent 322998a commit d509bdf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/persistence/persistence_tests.rb
Expand Up @@ -328,6 +328,16 @@ def check_015
test(M015.method_defined?(:m015_2), true, "Maglev.persistable(true) causes methods to be persisted, even afterwards.")
end

def test_016
Maglev.transient do
require 't016.rb'
end
end

def check_016
test(T016.included_modules.include?(M016), true, "Maglev.persistable(true) persists included modules.")
end


########################################
# Test Framework Methods
Expand Down
9 changes: 9 additions & 0 deletions src/test/persistence/t016.rb
@@ -0,0 +1,9 @@
module M016
end

class T016
include M016
end

M016.maglev_persistable(true)
T016.maglev_persistable(true)

0 comments on commit d509bdf

Please sign in to comment.