Skip to content

Commit

Permalink
Merge cb72c3e into fcdc118
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Oct 17, 2020
2 parents fcdc118 + cb72c3e commit 62e7106
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/miteru/cli.rb
Expand Up @@ -31,5 +31,11 @@ def execute
end

default_command :execute

class << self
def exit_on_failure?
true
end
end
end
end
6 changes: 6 additions & 0 deletions spec/cli_spec.rb
Expand Up @@ -12,4 +12,10 @@
capture(:stdout) { described_class.start %w(execute) }
end
end

describe ".exit_on_failure?" do
it do
expect(described_class.exit_on_failure?).to eq(true)
end
end
end

0 comments on commit 62e7106

Please sign in to comment.