Skip to content

Commit

Permalink
Test the executable more
Browse files Browse the repository at this point in the history
Adding a spec to make sure that it can at least be run successfully.
  • Loading branch information
enkessler committed May 21, 2019
1 parent a00699b commit 51d9fb3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testing/rspec/spec/integration/cuke_linter_integration_spec.rb
Expand Up @@ -2,6 +2,18 @@

RSpec.describe CukeLinter do


describe 'gem executable' do

it 'can be run directly' do
success = system('cuke_linter')

expect(success).to eq(true), "Command failed with exit code: #{$?}"
end

end


let(:test_model_tree) { CukeLinter::ModelFactory.generate_lintable_model }
let(:test_linters) { [CukeLinter::LinterFactory.generate_fake_linter] }
let(:test_formatters) { [[CukeLinter::FormatterFactory.generate_fake_formatter, "#{CukeLinter::FileHelper::create_directory}/junk_output_file.txt"]] }
Expand Down

0 comments on commit 51d9fb3

Please sign in to comment.