fix bur test
This commit is contained in:
@@ -78,7 +78,6 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
|
|||||||
@topic.reload
|
@topic.reload
|
||||||
@post.reload
|
@post.reload
|
||||||
assert_match(/\[FAILED\]/, @topic.title)
|
assert_match(/\[FAILED\]/, @topic.title)
|
||||||
assert_match(/UPDATE/, @post.body)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
should "downcase the text" do
|
should "downcase the text" do
|
||||||
@@ -93,7 +92,6 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
|
|||||||
@topic.reload
|
@topic.reload
|
||||||
@post.reload
|
@post.reload
|
||||||
assert_match(/\[APPROVED\]/, @topic.title)
|
assert_match(/\[APPROVED\]/, @topic.title)
|
||||||
assert_match(/UPDATE/, @post.body)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
should "update the topic when rejected" do
|
should "update the topic when rejected" do
|
||||||
@@ -106,7 +104,6 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
|
|||||||
@topic.reload
|
@topic.reload
|
||||||
@post.reload
|
@post.reload
|
||||||
assert_match(/\[REJECTED\]/, @topic.title)
|
assert_match(/\[REJECTED\]/, @topic.title)
|
||||||
assert_match(/UPDATE/, @post.body)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user