features/step_definitions/latex.rb in latex-decode-0.0.1 vs features/step_definitions/latex.rb in latex-decode-0.0.2

- old
+ new

@@ -1,7 +1,7 @@ -When /^I decode the string '([^']*)'$/ do |string| +When /^I decode the string ('|")(.*)\1$/ do |quote,string| @result = LaTeX.decode(string) end -Then /^the result should be '([^']*)'$/ do |value| +Then /^the result should be ('|")(.*)\1$/ do |quote,value| @result.should == value end \ No newline at end of file