test/resource_test.rb in meducation_sdk-1.4.3 vs test/resource_test.rb in meducation_sdk-1.4.4
- old
+ new
@@ -15,7 +15,17 @@
Loquor::HttpAction::Get.expects(:get).with("#{url}/#{id}", anything())
klass.find(id)
end
end
end
+
+ {
+ "Item::Comment" => Comment,
+ "KnowledgeBank::Question" => KnowledgeBankQuestion
+ }.each do |meducation_type, sdk_class|
+ define_method "test_class_for_#{meducation_type.underscore.gsub("/", "_")}" do
+ r = Resource.new({})
+ assert_equal sdk_class, r.class_for(meducation_type)
+ end
+ end
end
end