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:
parent
b71f08445c
commit
402abf81bb
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue