Sha256: 14de33f8efa50572fd635554fe9cfc4a5f88890abf9f232ca852289dfef16346

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'wparser/cli'

describe Wparser::CLI, "execute" do
  before(:each) do
    @stdout_io = StringIO.new
    Wparser::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
wparser-0.1.3 spec/wparser_cli_spec.rb
wparser-0.1.2 spec/wparser_cli_spec.rb
wparser-0.1.1 spec/wparser_cli_spec.rb
wparser-0.1.0 spec/wparser_cli_spec.rb
wparser-0.0.2 spec/wparser_cli_spec.rb
wparser-0.0.1 spec/wparser_cli_spec.rb