def add_rule_context_to_rspec(self, doc):
p = doc.xpathNewContext()
- context = p.xpathEval("//rspec")
+ context = p.xpathEval("//RSpec")
if (not context):
raise Exception('Request is not an rspec')
else:
return doc
def apply_interpreted(self, rspec):
- import pdb
- pdb.set_trace()
rspec = self.add_rule_context_to_rspec(rspec)
# Interpreted
#
self.processors[type] = processor[0].content
self.arguments[type] = p.xpathEval('//rule//argument[value!=""]')
- import pdb
- pdb.set_trace()
p.xpathFreeContext()