spec/generators/project_generator_spec.rb in taza-2.1.0 vs spec/generators/project_generator_spec.rb in taza-3.0.0
- old
+ new
@@ -3,10 +3,10 @@
describe Taza::ProjectGenerator do
context "taza create foo_site" do
context "creates" do
let(:subject) { Taza::ProjectGenerator.new(['foo_site']) }
- let(:output) { capture(:stdout) { subject.create } }
+ let(:output) { capture_stdout { subject.create } }
it 'a Gemfile' do
expect(output).to include("Gemfile")
expect(File.exists?('Gemfile')).to be true
end