Skip to content

Commit

Permalink
Revert "Read table cells as strings."
Browse files Browse the repository at this point in the history
This reverts commit e276f36.
  • Loading branch information
rejeep committed Oct 28, 2013
1 parent 9628e9b commit 9c745eb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
4 changes: 1 addition & 3 deletions ecukes-parse.el
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@
(defun ecukes-parse-table-step-row ()
"Parse row in table."
(let ((row (ecukes-parse-line)))
(--map
(read (concat "\"" it "\""))
(butlast (cdr (split-string row "\\s-*|\\s-*"))))))
(butlast (cdr (split-string row "\\s-*|\\s-*")))))

(defun ecukes-parse-py-string-step-p ()
"Check if step is a py string step or not."
Expand Down
9 changes: 0 additions & 9 deletions test/ecukes-parse-table-step-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,3 @@
(lambda (name head body type arg)
(should (eq type 'table))
(should (equal arg '(("meal" "price") ("Hamburger" "") ("Pizza" "$5.30")))))))

(ert-deftest parse-table-step-multiline-string ()
"Should parse table with multiline string."
(with-parse-step
"table-multi-line-string"
(lambda (name head body type arg)
(should (eq type 'table))
(should (equal arg '(("meal" "price") ("Ham
burger" "$4.50")))))))
4 changes: 0 additions & 4 deletions test/fixtures/step/table-multi-line-string.feature

This file was deleted.

0 comments on commit 9c745eb

Please sign in to comment.