Sha256: cadac077d362cf0b9919e3cba212530aef26c7f53f21418564307ba4cb2258d7

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

# encoding: utf-8

describe "Rake::Task[:debug]", :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::Suit::Utils::System utility.

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

  describe ".invoke", :sandbox do

    subject { try_in_sandbox { task.invoke } }

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hexx-suit-0.2.2 spec/tests/tasks/debug_spec.rb
hexx-suit-0.2.1 spec/tests/tasks/debug_spec.rb
hexx-suit-0.2.0 spec/tests/tasks/debug_spec.rb
hexx-suit-0.1.0 spec/tests/tasks/debug_spec.rb
hexx-suit-0.0.1 spec/tests/tasks/debug_spec.rb