Sha256: f7840ee142cc5003eb6925a768961193136571cbac9106280e26895657cb544e

Contents?: true

Size: 637 Bytes

Versions: 6

Compression:

Stored size: 637 Bytes

Contents

require 'spec_helper'

RSpec.describe PolishGeeks::DevTools::Command::Rubycritic do
  subject { described_class.new }

  describe '#execute' do
    context 'when we run rubycritic' do
      before do
        expect_any_instance_of(PolishGeeks::DevTools::Shell)
          .to receive(:execute)
          .with('bundle exec rubycritic ./app ./lib/')
      end

      it 'should execute the command' do
        subject.execute
      end
    end
  end

  describe '.generator?' do
    it { expect(described_class.generator?).to eq true }
  end

  describe '.validator?' do
    it { expect(described_class.validator?).to eq false }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
polishgeeks-dev-tools-1.2.0 spec/lib/polishgeeks/dev-tools/command/rubycritic_spec.rb
polishgeeks-dev-tools-1.1.3 spec/lib/polishgeeks/dev-tools/command/rubycritic_spec.rb
polishgeeks-dev-tools-1.1.2 spec/lib/polishgeeks/dev-tools/command/rubycritic_spec.rb
polishgeeks-dev-tools-1.1.1 spec/lib/polishgeeks/dev-tools/command/rubycritic_spec.rb
polishgeeks-dev-tools-1.1.0 spec/lib/polishgeeks/dev-tools/command/rubycritic_spec.rb
polishgeeks-dev-tools-1.0.0 spec/lib/polishgeeks/dev-tools/command/rubycritic_spec.rb