Skip to content

Commit

Permalink
Stub churn
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanVqz committed Sep 9, 2022
1 parent c5ca1b6 commit 1e052af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/lib/skunk/rubycritic/analysed_module_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,17 @@
{
file: "samples/rubycritic/analysed_module.rb",
skunk_score: 58.88,
churn_times_cost: 2.36,
churn: 4,
churn_times_cost: 2.94,
churn: 5,
cost: 0.59,
coverage: 0.0
}
end

it "returns a hash with all the attributes and values" do
_(@analysed_module.to_hash).must_equal result
@analysed_module.stub(:churn, 5) do
_(@analysed_module.to_hash).must_equal result
end
end
end
end

0 comments on commit 1e052af

Please sign in to comment.