text method migrated!

This commit is contained in:
Andy Meneely
2020-05-16 20:00:45 -04:00
parent 3590280c98
commit 272892d358
11 changed files with 159 additions and 109 deletions
+10 -1
View File
@@ -3,7 +3,7 @@ require_relative 'docs_helper'
describe Squib::DSL do
context 'methods' do
Squib::DSL.constants.each do |m|
(Squib::DSL.constants - [:Text]).each do |m|
it "accepted params for #{m} are in the docs" do
accepted_params = Squib::DSL.const_get(m).accepted_params.sort
documented_opts = documented_options(m).sort
@@ -11,6 +11,15 @@ describe Squib::DSL do
end
end
it "accepted params for text and embedding options are in the docs" do
accepted_params = Squib::DSL::Text.accepted_params
accepted_params += Squib::TextEmbed.accepted_params
accepted_params.sort!
accepted_params.uniq!
documented_opts = documented_options(:Text).sort.uniq
documented_opts -= %i( embed.png embed.svg )
expect(accepted_params).to eq(documented_opts)
end
end
end