test/representations_test.rb in loquor-0.0.1 vs test/representations_test.rb in loquor-0.0.2

- old
+ new

@@ -4,12 +4,18 @@ class RepresentationTest < Minitest::Test { MediaFile: "/media_files", User: "/users" + GroupDiscussion: "/group_discussions" + GroupDiscussionPost: "/group_discussion_posts" }.each do |klass, path| define_method "test_#{klass}_set_up_correctly" do assert Loquor.const_defined?(klass) + end + + define_method "test_#{klass}_stores_path_up_correctly" do + assert_equal path, Loquor.const_get(klass).path end end end end