spec/support/generators_shared_examples.rb in statesman-3.0.0 vs spec/support/generators_shared_examples.rb in statesman-3.1.0

- old
+ new

@@ -5,18 +5,18 @@ TMP_GENERATOR_PATH = File.expand_path('../generator-tmp', __FILE__) shared_examples 'a generator' do destination TMP_GENERATOR_PATH before { prepare_destination } - let(:gen) { generator %w(Yummy::Bacon Yummy::BaconTransition) } + let(:gen) { generator %w[Yummy::Bacon Yummy::BaconTransition] } it 'invokes create_model_file method' do expect(gen).to receive(:create_model_file) gen.invoke_all end describe 'it runs the generator and check things out' do - before { run_generator %w(Yummy::Bacon Yummy::BaconTransition) } + before { run_generator %w[Yummy::Bacon Yummy::BaconTransition] } describe 'it generates a correctly named file' do subject { file(migration_name) } it { is_expected.to be_a_migration } end