1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Fix HaveRichTextMatcher class name

This commit is contained in:
Pedro Paiva 2020-11-02 00:31:41 -03:00 committed by Elliot Winkler
parent b71f08445c
commit 402abf81bb
2 changed files with 4 additions and 4 deletions

View file

@ -20,14 +20,14 @@ module Shoulda
# should have_rich_text(:content)
# end
#
# @return [HaveRichText]
# @return [HaveRichTextMatcher]
#
def have_rich_text(rich_text_attribute)
HaveRichText.new(rich_text_attribute)
HaveRichTextMatcher.new(rich_text_attribute)
end
# @private
class HaveRichText
class HaveRichTextMatcher
def initialize(rich_text_attribute)
@rich_text_attribute = rich_text_attribute
end

View file

@ -1,6 +1,6 @@
require 'unit_spec_helper'
describe Shoulda::Matchers::ActiveRecord::HaveRichText, type: :model do
describe Shoulda::Matchers::ActiveRecord::HaveRichTextMatcher, type: :model do
def self.rich_text_is_defined?
defined?(ActionText::RichText)
end