summaryrefslogtreecommitdiffstats
path: root/test/exemplars/member_role_exemplar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/exemplars/member_role_exemplar.rb')
-rw-r--r--test/exemplars/member_role_exemplar.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/exemplars/member_role_exemplar.rb b/test/exemplars/member_role_exemplar.rb
new file mode 100644
index 000000000..0e1e6e70c
--- /dev/null
+++ b/test/exemplars/member_role_exemplar.rb
@@ -0,0 +1,12 @@
+class MemberRole < ActiveRecord::Base
+ generator_for :member, :method => :generate_member
+ generator_for :role, :method => :generate_role
+
+ def self.generate_role
+ Role.generate!
+ end
+
+ def self.generate_member
+ Member.generate!
+ end
+end