lib/fixture_background/background.rb in fixture_background-0.9.2 vs lib/fixture_background/background.rb in fixture_background-0.9.3
- old
+ new
@@ -1,9 +1,10 @@
module FixtureBackground
class Background
class << self
def class_for_test(full_class_name, background_to_use, test_unit_class)
+ full_class_name = full_class_name.gsub("::", "__")
class_by_name(full_class_name) || create_class(full_class_name, test_unit_class, background_to_use)
end
def create_class(full_class_name, parent_class, background_to_use)
klass = Class.new(parent_class)