Sha256: b2bce79f4291c7fda42d1b57defba34754739513cc0ed6e8fd4cbae9144160a5
Contents?: true
Size: 776 Bytes
Versions: 1
Compression:
Stored size: 776 Bytes
Contents
require 'spec_helper' describe Taza::FlowGenerator do before(:each) do capture_stdout { Taza::SiteGenerator.new(['foo_site']).site } end context "taza flow checkout foo_site" do context "creates" do let(:subject) { Taza::FlowGenerator.new(['checkout', 'foo_site']) } let(:output) { capture_stdout { subject.flow } } it 'a checkout.rb' do expect(output).to include('lib/sites/foo_site/flows/checkout.rb') expect(File.exists?('lib/sites/foo_site/flows/checkout.rb')).to be true end it 'a message if site does not exist' do bar_page = capture_stdout { Taza::FlowGenerator.new(['checkout', 'bar_site']).flow } expect(bar_page).to include("No such site bar_site exists") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
taza-3.0.0 | spec/generators/flow_generator_spec.rb |