ruby test assert_diff with a chance to set value
This commit is contained in:
parent
f8c2b5dd93
commit
dc336dcd49
@ -596,8 +596,8 @@ snippet artp
|
||||
snippet artpp
|
||||
assert_redirected_to ${1:model}s_path
|
||||
snippet asd
|
||||
assert_difference "${1:Model}.${2:count}", $1 do
|
||||
${3}
|
||||
assert_difference "${1:Model}.${2:count}", ${3:1} do
|
||||
${4}
|
||||
end
|
||||
snippet asnd
|
||||
assert_no_difference "${1:Model}.${2:count}" do
|
||||
|
Loading…
Reference in New Issue
Block a user