Skip to content

Commit

Permalink
refactor(test): refactor ruby tests to use sp-ert-deftest
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuco1 committed Apr 10, 2024
1 parent bbdc083 commit 39b4379
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/smartparens-ruby-mode-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end"))))
(should
(sp-ruby-eq-ignore-indent (buffer-string) expected)))))

(ert-deftest sp-test-ruby-slurp-forward ()
(sp-ert-deftest sp-test-ruby-slurp-forward
(sp-ruby-test-slurp-assert 1 "
if teXst
end
Expand Down Expand Up @@ -249,7 +249,7 @@ end

)

(ert-deftest sp-test-ruby-slurp-backward ()
(sp-ert-deftest sp-test-ruby-slurp-backward
(sp-ruby-test-slurp-assert -1 "
foo.bar
begin X
Expand Down Expand Up @@ -425,7 +425,7 @@ end

)

(ert-deftest sp-test-ruby-slurp-on-single-line ()
(sp-ert-deftest sp-test-ruby-slurp-on-single-line
(sp-ruby-test-slurp-assert 1 "
test {X} test
" :=> "
Expand All @@ -452,7 +452,7 @@ test { test; test }

)

(ert-deftest sp-test-ruby-slurp-with-inline-blocks ()
(sp-ert-deftest sp-test-ruby-slurp-with-inline-blocks
(sp-ruby-test-slurp-assert 1 "
if teXst
end
Expand Down Expand Up @@ -502,7 +502,7 @@ end
(should
(sp-ruby-eq-ignore-indent (buffer-string) expected)))))

(ert-deftest sp-test-ruby-barf-forward ()
(sp-ert-deftest sp-test-ruby-barf-forward
(sp-ruby-test-barf-assert 1 "
if teXst
foo
Expand Down Expand Up @@ -612,7 +612,7 @@ end
")
)

(ert-deftest sp-test-ruby-barf-backward ()
(sp-ert-deftest sp-test-ruby-barf-backward
(sp-ruby-test-barf-assert -1 "
begin
fooX
Expand Down Expand Up @@ -702,7 +702,7 @@ end
")
)

(ert-deftest sp-test-ruby-barf-on-single-line ()
(sp-ert-deftest sp-test-ruby-barf-on-single-line
(sp-ruby-test-barf-assert 1 "
test { Xtest }
" :=> "
Expand Down Expand Up @@ -768,7 +768,7 @@ foo = if true
(should
(sp-ruby-eq-ignore-indent (buffer-string) expected)))))

(ert-deftest sp-test-ruby-splice ()
(sp-ert-deftest sp-test-ruby-splice
(sp-ruby-test-splice-assert 1 "
if teXst
end
Expand Down

0 comments on commit 39b4379

Please sign in to comment.