spec/cli/cukes_spec.rb in skellington-0.4.3 vs spec/cli/cukes_spec.rb in skellington-0.4.4

- old
+ new

@@ -3,11 +3,12 @@ let :subject do described_class.new end it 'generates some cucumber file' do - subject.generate 'dummy_app' + expect { subject.generate 'dummy_app' }.to produce_file 'dummy_app/features/step_definitions/dummy_app_steps.rb' + expect('dummy_app/features/dummy_app.feature').to have_content ( """ Feature: Make sure DummyApp is plumbed in correctly Scenario: Get root @@ -57,10 +58,8 @@ World do DummyAppWorld.new end """ ) - - expect(File).to exist 'dummy_app/features/step_definitions/dummy_app_steps.rb' end end end