Sha256: c8d8844eba5002cee65949b0da91be68f239956af68aa9e28933d357537ed091
Contents?: true
Size: 1.54 KB
Versions: 5
Compression:
Stored size: 1.54 KB
Contents
require 'spec_helper' # Generators are not automatically loaded by Rails require 'generators/cucumber/install/install_generator' describe Cucumber::InstallGenerator do # Tell the generator where to put its output (what it thinks of as Rails.root) destination File.expand_path('../../../../../tmp', __FILE__) before { prepare_destination } describe 'no arguments' do before { run_generator } describe 'config/cucumber.yml' do subject { file('config/cucumber.yml') } it { is_expected.to exist } it { is_expected.to contain 'default: <%= std_opts %> features' } end describe 'features/step_definitions folder' do subject { file('features/step_definitions') } it { is_expected.to exist } end describe 'features/support/env.rb' do subject { file('features/support/env.rb') } it { is_expected.to exist } it { is_expected.to contain '# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.' } it { is_expected.to contain "require 'cucumber/rails'" } end describe 'lib/tasks/cucumber.rake' do subject { file('lib/tasks/cucumber.rake') } it { is_expected.to exist } it { is_expected.to contain '# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.' } it { is_expected.to contain "task :cucumber => 'cucumber:ok'" } end describe 'script/cucumber' do subject { file('script/cucumber') } it { is_expected.to exist } it { is_expected.to contain 'load Cucumber::BINARY' } end end end
Version data entries
5 entries across 5 versions & 1 rubygems