Sha256: 10ebb2f8a01e0f8beefc449a883b57d75337f2192ad3b947bbe691d5b6d72779
Contents?: true
Size: 517 Bytes
Versions: 6
Compression:
Stored size: 517 Bytes
Contents
# encoding: utf-8 describe "Rake::Task['check:inch']", :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["check:inch"] } describe ".invoke", :sandbox, :capture do subject { try_in_sandbox { task.invoke } } it "runs inch metric" do expect { subject }.to change { commands }.to ["inch --pedantic"] end end end
Version data entries
6 entries across 6 versions & 1 rubygems