Sha256: 24972e218b33d04c38e2bafed461a6ad1a621addb8bf8af4414f875a2508fb83

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require '<%= bin_name %>/cli'

describe <%= module_name %>::CLI, "execute" do
  before(:each) do
    @stdout_io = StringIO.new
    <%= module_name %>::CLI.execute(@stdout_io, [])
    @stdout_io.rewind
    @stdout = @stdout_io.read
  end
  
  it "should print default output" do
    @stdout.should =~ /To update this executable/
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newgem-1.5.3 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.5.0 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.5.1 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.5.2 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.4.0 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.4.1 rubygems_generators/executable/templates/spec/cli_spec.rb.erb