Sha256: dea8924bf46d3b960e9b6a0502dfbd0c9595f2794a0a43bb1bbe9943811bd9a1
Contents?: true
Size: 608 Bytes
Versions: 23
Compression:
Stored size: 608 Bytes
Contents
require 'spec_helper' require 'generators/rspec/command/command_generator' describe Rspec::Generators::CommandGenerator, :type => :generator do it "should run all tasks in the generator" do gen = generator %w(foo_bar) expect(gen).to receive(:create_command_spec) capture(:stdout) { gen.invoke_all } end describe "the generated files" do describe "the spec" do describe "with defaults" do before do run_generator %w(foo_bar) end subject { file('spec/commands/foo_bar_command_spec.rb') } it { should exist } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems