spec/unit/generators/web_generator_spec.rb in howitzer-2.0.3 vs spec/unit/generators/web_generator_spec.rb in howitzer-2.1.0
- old
+ new
@@ -39,12 +39,12 @@
]
end
it { is_expected.to eql(expected_result) }
describe 'output' do
let(:expected_output) do
- " * PageOriented pattern structure generation ...
- Added 'web/pages/example_page.rb' file
- Added 'web/sections/menu_section.rb' file\n"
+ "#{ColorizedString.new(' * PageOriented pattern structure generation ...').light_cyan}
+ #{ColorizedString.new('Added').light_green} 'web/pages/example_page.rb' file
+ #{ColorizedString.new('Added').light_green} 'web/sections/menu_section.rb' file\n"
end
subject { output.string }
it { is_expected.to eql(expected_output) }
end
end