Sha256: 2c9e52cf6e8444c6d3061a3848367f577562280f5b7c20acde27797638c098a8
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 Bytes
Contents
# encoding: utf-8 describe "Rake::Task['check:pippi: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::Pippi } let(:task) { Rake::Task["check:pippi: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.include? "rake test" }.to true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hexx-suit-0.1.0 | spec/tests/tasks/check/pippi/run_spec.rb |
hexx-suit-0.0.1 | spec/tests/tasks/check/pippi/run_spec.rb |