Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add commands specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Apr 24, 2017
1 parent 99e09ad commit b646e3e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/lib/svgeez/commands/build_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'mercenary'

describe Svgeez::Commands::Build do
let(:program) { Mercenary::Program.new(:svgeez) }

let(:command) { Svgeez::Commands::Build.init_with_program(program) }

it 'sets a description' do
expect(command.description).to eq('Builds an SVG sprite from a folder of SVG icons')
end

it 'sets a syntax' do
expect(command.syntax).to eq('svgeez build [options]')
end
end
15 changes: 15 additions & 0 deletions spec/lib/svgeez/commands/watch_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'mercenary'

describe Svgeez::Commands::Watch do
let(:program) { Mercenary::Program.new(:svgeez) }

let(:command) { Svgeez::Commands::Watch.init_with_program(program) }

it 'sets a description' do
expect(command.description).to eq('Watches a folder of SVG icons for changes')
end

it 'sets a syntax' do
expect(command.syntax).to eq('svgeez watch [options]')
end
end

0 comments on commit b646e3e

Please sign in to comment.