Sha256: 29ef48ad9774ee97542aae104b68938d3d457bedb0d105f1ed4c72af9274860c

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 Bytes

Contents

# encoding: utf-8

describe Hexx::RSpec::Tasks do

  describe ".install" do

    let(:rake_tasks) { Rake::Task.tasks.map(&:name) }

    before { described_class.install }

    it "loads Gem tasks" do
      expect(rake_tasks).to include("build", "install", "release")
    end

    it "loads RSpec tasks" do
      expect(rake_tasks).to include("spec")
    end

    it "loads described_class tasks" do
      expect(rake_tasks).to include(*%w(
        test:coverage
        test:coverage:display
        test:coverage:run
        test
      ))
    end

  end # display .install

end # describe Hexx::RSpec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hexx-rspec-0.5.2 spec/unit/lib/tasks_spec.rb
hexx-rspec-0.5.1 spec/unit/lib/tasks_spec.rb