Sha256: 7029b795b46682c4cb2bee968a83f6265868d8a8a187be6fca96956417268567

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 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", :capture do
      expect { subject }.to change { commands }.to [
        "bundle exec rspec spec"
      ]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hexx-rspec-0.4.2 spec/tests/tasks/test_spec.rb
hexx-rspec-0.4.1 spec/tests/tasks/test_spec.rb
hexx-rspec-0.4.0 spec/tests/tasks/test_spec.rb
hexx-rspec-0.3.1 spec/tests/tasks/test_spec.rb
hexx-rspec-0.3.0 spec/tests/tasks/test_spec.rb
hexx-rspec-0.2.2 spec/tests/tasks/test_spec.rb
hexx-rspec-0.2.1 spec/tests/tasks/test_spec.rb