Sha256: b2fa75c69f8b2dce9f777e4f62ff225e42b60c726185f320513c590ac2f79408
Contents?: true
Size: 660 Bytes
Versions: 5
Compression:
Stored size: 660 Bytes
Contents
# encoding: utf-8 describe "Rake::Task['check:coverage:run']", :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(:metric) { Hexx::Suit::Metrics::SimpleCov } let(:task) { Rake::Task["check:coverage:run"] } describe ".invoke", :sandbox do subject { try_in_sandbox { task.invoke } } it "loads the metric" do expect(metric).to receive(:load) subject end it "runs tests" do expect { subject }.to change { commands }.to ["rake test"] end end end
Version data entries
5 entries across 5 versions & 1 rubygems