Sha256: 01868d73820ace75d350a240b871465acff9fa507e3195c1290d0b99741ede56
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require "spec_helper" describe SpringMvcScaffold::Runner::Generator do let(:generator) { double(AppGenerator) } let(:project_name) { "springmvc-scaffold" } let(:option) { "-p=br.com.company" } let(:args) { [project_name, option] } before { allow(AppGenerator).to receive(:new).with(project_name, [option]).and_return(generator) } it "should invoke all app generator tasks when typed new" do expect(generator).to receive(:invoke_all) subject.run(args) end it "prints help command" do expect(AppGenerator).to receive(:start).with(["-h"]) subject.run(["--help"]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
springmvc-scaffold-1.0.1 | spec/springmvc-scaffold/runner/generator_spec.rb |