14 lines
310 B
Ruby
14 lines
310 B
Ruby
require "test_helper"
|
|
|
|
class CommentTest < ActiveSupport::TestCase
|
|
setup do
|
|
Current.session = sessions(:david)
|
|
end
|
|
|
|
test "searchable by body" do
|
|
message = bubbles(:logo).comment "I'd prefer something more rustic"
|
|
|
|
assert_includes Comment.search("something rustic"), message.comment
|
|
end
|
|
end
|