Sha256: ea2504ec4aad0ca0ec52fe0ded8451d5974267b80121164d4ec2598a1cbc12ad

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

# encoding: utf-8

describe "Rake::Task[:test]", :tasks do

  # The {#commands} variable is defined in the spec/support/config/tasks.rb
  # It collects the list of commands, that has been sent to system by
  # any instance of Hexx::RSpec::System utility.

  let(:task) { Rake::Task[:test] }

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

    it "runs tests" do
      expect { subject }.to change { commands }.to [
        "bundle exec rspec spec"
      ]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hexx-rspec-0.2.0 spec/tests/tasks/test_spec.rb
hexx-rspec-0.1.0 spec/tests/tasks/test_spec.rb
hexx-rspec-0.0.1 spec/tests/tasks/test_spec.rb