Sha256: c42f17d676a57967f6bb3e2b2f236370504eb6e95b5fdefae3350847ff016d94

Contents?: true

Size: 909 Bytes

Versions: 4

Compression:

Stored size: 909 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/pippi.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

4 entries across 4 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 spec/tests/lib/install_spec.rb
hexx-suit-0.2.1 spec/tests/lib/install_spec.rb
hexx-suit-0.2.0 spec/tests/lib/install_spec.rb
hexx-suit-0.1.0 spec/tests/lib/install_spec.rb