spec/generators/site_generator_spec.rb in taza-2.1.0 vs spec/generators/site_generator_spec.rb in taza-3.0.0

- old
+ new

@@ -3,11 +3,11 @@ describe Taza::SiteGenerator do context "taza site foo_site" do context "creates" do let(:subject) { Taza::SiteGenerator.new(['foo_site']) } - let(:output) { capture(:stdout) { subject.site } } + let(:output) { capture_stdout { subject.site } } it 'foo_site.rb' do expect(output).to include('lib/sites/foo_site.rb') expect(File.exists?('lib/sites/foo_site.rb')).to be true end @@ -36,10 +36,10 @@ expect(output).to include("config/foo_site.yml") expect(File.exists?('config/foo_site.yml')).to be true end it 'does not overwrite existing site' do - capture(:stdout) { Taza::SiteGenerator.new(['foo_site']).site } + capture_stdout { Taza::SiteGenerator.new(['foo_site']).site } expect(output).to include(*["identical", "exist"]) end it "generates a site that can uses the block given in new" do skip 'will have to fix this later'