spec/unit/generators/prerequisites_generator_spec.rb in howitzer-2.0.3 vs spec/unit/generators/prerequisites_generator_spec.rb in howitzer-2.1.0
- old
+ new
@@ -19,12 +19,12 @@
{
name: '/prerequisites/factories/users.rb',
is_directory: false, size: template_file_size('prerequisites', 'users.rb')
},
{
- name: '/prerequisites/factory_girl.rb',
- is_directory: false, size: template_file_size('prerequisites', 'factory_girl.rb')
+ name: '/prerequisites/factory_bot.rb',
+ is_directory: false, size: template_file_size('prerequisites', 'factory_bot.rb')
},
{ name: '/prerequisites/models', is_directory: true },
{
name: '/prerequisites/models/base.rb',
is_directory: false,
@@ -38,14 +38,14 @@
]
end
it { is_expected.to eql(expected_result) }
describe 'output' do
let(:expected_output) do
- " * Pre-requisites integration to the framework ...
- Added 'prerequisites/factory_girl.rb' file
- Added 'prerequisites/factories/users.rb' file
- Added 'prerequisites/models/base.rb' file
- Added 'prerequisites/models/user.rb' file\n"
+ "#{ColorizedString.new(' * Pre-requisites integration to the framework ...').light_cyan}
+ #{ColorizedString.new('Added').light_green} 'prerequisites/factory_bot.rb' file
+ #{ColorizedString.new('Added').light_green} 'prerequisites/factories/users.rb' file
+ #{ColorizedString.new('Added').light_green} 'prerequisites/models/base.rb' file
+ #{ColorizedString.new('Added').light_green} 'prerequisites/models/user.rb' file\n"
end
subject { output.string }
it { is_expected.to eql(expected_output) }
end
end