Sha256: 552aa874303434f66c925ecdf0359b0c55238a04beb48a29a6c872497cd289a8

Contents?: true

Size: 399 Bytes

Versions: 6

Compression:

Stored size: 399 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 do something" do
    @stdout.should_not =~ /To update this executable/
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newgem-1.1.0 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.2.0 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.2.1 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.2.2 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.2.3 rubygems_generators/executable/templates/spec/cli_spec.rb.erb
newgem-1.3.0 rubygems_generators/executable/templates/spec/cli_spec.rb.erb