diff --git a/spec/factories/smithy_content_block_templates.rb b/spec/factories/smithy_content_block_templates.rb index 4c18d6c..57fd8a0 100644 --- a/spec/factories/smithy_content_block_templates.rb +++ b/spec/factories/smithy_content_block_templates.rb @@ -3,7 +3,7 @@ FactoryGirl.define do factory :content_block_template, :class => 'Smithy::ContentBlockTemplate' do content_block - name { Faker::Lorem.words(5).join(' ') } - content { Faker::Lorem.paragraph } + name { FFaker::Lorem.words(5).join(' ') } + content { FFaker::Lorem.paragraph } end end diff --git a/spec/factories/smithy_content_blocks.rb b/spec/factories/smithy_content_blocks.rb index 3284b7e..7f66dec 100644 --- a/spec/factories/smithy_content_blocks.rb +++ b/spec/factories/smithy_content_blocks.rb @@ -2,6 +2,6 @@ FactoryGirl.define do factory :content_block, :class => 'Smithy::ContentBlock' do - name { Faker::Lorem.words(5).join(' ') } + name { FFaker::Lorem.words(5).join(' ') } end end diff --git a/spec/factories/smithy_contents.rb b/spec/factories/smithy_contents.rb index 28790a1..dd18e3f 100644 --- a/spec/factories/smithy_contents.rb +++ b/spec/factories/smithy_contents.rb @@ -2,6 +2,6 @@ FactoryGirl.define do factory :content, :class => 'Smithy::Content' do - content { Faker::Lorem.paragraph } + content { FFaker::Lorem.paragraph } end end diff --git a/spec/factories/smithy_images.rb b/spec/factories/smithy_images.rb index 5607a92..b77c261 100644 --- a/spec/factories/smithy_images.rb +++ b/spec/factories/smithy_images.rb @@ -3,7 +3,7 @@ FactoryGirl.define do factory :image, :class => 'Smithy::Image' do asset - alternate_text { Faker::Lorem.words(5).join(' ') } - content { Faker::Lorem.sentence } + alternate_text { FFaker::Lorem.words(5).join(' ') } + content { FFaker::Lorem.sentence } end end diff --git a/spec/factories/smithy_page_contents.rb b/spec/factories/smithy_page_contents.rb index 81359f7..5904f5a 100644 --- a/spec/factories/smithy_page_contents.rb +++ b/spec/factories/smithy_page_contents.rb @@ -4,7 +4,7 @@ factory :page_content, :class => 'Smithy::PageContent' do page container 'main_content' - label { Faker::Lorem.words(2).join(' ') } + label { FFaker::Lorem.words(2).join(' ') } association :content_block, factory: :content trait :publishable do publishable true diff --git a/spec/factories/smithy_pages.rb b/spec/factories/smithy_pages.rb index 3845833..feb07b0 100644 --- a/spec/factories/smithy_pages.rb +++ b/spec/factories/smithy_pages.rb @@ -3,9 +3,9 @@ FactoryGirl.define do factory :page, :class => 'Smithy::Page' do template - title { Faker::Lorem.words(2).join(' ') } - description { Faker::Lorem.sentence } - keywords { Faker::Lorem.words(10).join(' ') } + title { FFaker::Lorem.words(2).join(' ') } + description { FFaker::Lorem.sentence } + keywords { FFaker::Lorem.words(10).join(' ') } published_at 1.day.ago end end diff --git a/spec/factories/smithy_settings.rb b/spec/factories/smithy_settings.rb index 9fb896d..1719acf 100644 --- a/spec/factories/smithy_settings.rb +++ b/spec/factories/smithy_settings.rb @@ -2,7 +2,7 @@ FactoryGirl.define do factory :setting, :class => 'Smithy::Setting' do - name { Faker::Lorem.words(5).join('_') } - value { Faker::Lorem.words(5).join('_') } + name { FFaker::Lorem.words(5).join('_') } + value { FFaker::Lorem.words(5).join('_') } end end diff --git a/spec/factories/smithy_template_containers.rb b/spec/factories/smithy_template_containers.rb index 13a52df..ca9ee24 100644 --- a/spec/factories/smithy_template_containers.rb +++ b/spec/factories/smithy_template_containers.rb @@ -2,7 +2,7 @@ FactoryGirl.define do factory :template_container, :class => 'Smithy::TemplateContainer' do - name { Faker::Lorem.words(5).join(' ') } + name { FFaker::Lorem.words(5).join(' ') } template end end diff --git a/spec/factories/smithy_templates.rb b/spec/factories/smithy_templates.rb index 79ff33a..d6b013d 100644 --- a/spec/factories/smithy_templates.rb +++ b/spec/factories/smithy_templates.rb @@ -2,8 +2,8 @@ FactoryGirl.define do factory :template, :class => 'Smithy::Template' do - name { Faker::Lorem.words(5).join(' ') } - content { Faker::Lorem.paragraph } + name { FFaker::Lorem.words(5).join(' ') } + content { FFaker::Lorem.paragraph } template_type 'template' end end diff --git a/spec/lib/smithy/formatter_spec.rb b/spec/lib/smithy/formatter_spec.rb index 8e28769..8735c27 100644 --- a/spec/lib/smithy/formatter_spec.rb +++ b/spec/lib/smithy/formatter_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' RSpec.describe Smithy::Formatter do - subject(:content) { Faker::Lorem.sentence } + subject(:content) { FFaker::Lorem.sentence } subject(:formatter) { formatter = Smithy::Formatter.new(content) } describe "#render" do @@ -9,7 +9,7 @@ it { is_expected.to eql "

#{content}

" } %w( p div ul ol li blockquote pre h1 h2 h3 h4 h5 h6 object ).each do |tag| context "block-level tags" do - subject(:content) { "<#{tag}>#{Faker::Lorem.sentence}"} + subject(:content) { "<#{tag}>#{FFaker::Lorem.sentence}"} it "(#{tag}) shouldn't be removed" do expect(render).to eql content end @@ -25,7 +25,7 @@ end %w( a span sub sup strong em abbr code del small big ).each do |tag| context "span-level tags" do - subject(:content) { "<#{tag}>#{Faker::Lorem.sentence}"} + subject(:content) { "<#{tag}>#{FFaker::Lorem.sentence}"} it "(#{tag}) shouldn't be removed" do expect(render).to eql "

#{content}

" end @@ -33,7 +33,7 @@ end %w( br img ).each do |tag| context "inline tags" do - subject(:content) { "#{Faker::Lorem.sentence} <#{tag}>"} + subject(:content) { "#{FFaker::Lorem.sentence} <#{tag}>"} it "(#{tag}) shouldn't be removed" do expect(render).to eql "

#{content}

" end