Sha256: afc0ae0abe3685ebf352c2af285435484c70c3ecd95263d2323a6a5af2b51244

Contents?: true

Size: 877 Bytes

Versions: 3

Compression:

Stored size: 877 Bytes

Contents

# encoding: utf-8

describe Hexx::Suit::Install, :sandbox do

  describe ".start" do

    before { try_in_sandbox { described_class.start } }

    it "creates necessary files" do
      %w(
        .rspec
        .rubocop.yml
        .yardopts
        Guardfile
        Rakefile
        config/metrics/cane.yml
        config/metrics/churn.yml
        config/metrics/flay.yml
        config/metrics/metric_fu.yml
        config/metrics/reek.yml
        config/metrics/roodi.yml
        config/metrics/rubocop.yml
        config/metrics/saikuro.yml
        config/metrics/simplecov.yml
        config/metrics/yardstick.yml
        config/metrics/STYLEGUIDE
      ).each { |file| expect(file).to be_present_in_sandbox }
    end

    it "adds Hexx::Suit tasks loader to Rakefile" do
      expect(read_in_sandbox "Rakefile").to include "Hexx::Suit.install_tasks"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hexx-suit-1.5.0-x86_64-linux spec/tests/lib/install_spec.rb
hexx-suit-1.3.0-x86_64-linux spec/tests/lib/install_spec.rb
hexx-suit-1.2.0 spec/tests/lib/install_spec.rb