Sha256: e117c6d872c6e9e764357427c8f729d51e1f156979422b8f03925826bde6ce3b

Contents?: true

Size: 237 Bytes

Versions: 11

Compression:

Stored size: 237 Bytes

Contents

shared_examples_for "script with args" do

  it 'displays usage and exits if no args given' do
    stdout_should_receive :pattern, Regexp.new("Script #{@name} .* - Usage:")
    expect{ cli "#{@name}" }.to raise_error SystemExit
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
my_scripts-0.1.15 spec/shared.rb
my_scripts-0.1.14 spec/shared.rb
my_scripts-0.1.13 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.12 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.11 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.10 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.9 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.8 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.7 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.5 spec/my_scripts/scripts/shared.rb
my_scripts-0.1.3 spec/my_scripts/scripts/shared.rb