decko-commons/decko

View on GitHub
mod/comment/spec/set/right/comment_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- encoding : utf-8 -*-

describe Card::Set::Right::Comment do
  context "comment addition" do
    it "combines content after save" do
      Card::Auth.as_bot do
        Card["basicname"].update! comment: " and more\n  \nsome lines\n\n"
      end
      expect(Card["basicname"].content).to match(%r{<p>some lines</p>})
    end
  end
end