text method migrated!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user