RSpecElement init takes only element type and path
authorMohamed Larabi <mohamed.larabi@inria.fr>
Wed, 3 Apr 2013 16:55:05 +0000 (18:55 +0200)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Wed, 3 Apr 2013 16:55:05 +0000 (18:55 +0200)
sfa/rspecs/rspec.py

index e58096a..d6604f4 100755 (executable)
@@ -65,7 +65,7 @@ class RSpec:
     def register_rspec_element(self, element_type, element_name, element_path):
         if element_type not in RSpecElements:
             raise InvalidRSpecElement(element_type, extra="no such element type: %s. Must specify a valid RSpecElement" % element_type)
-        self.elements[element_type] = RSpecElement(element_type, element_name, element_path)
+        self.elements[element_type] = RSpecElement(element_type, element_path)
 
     def get_rspec_element(self, element_type):
         if element_type not in self.elements: