ruby-watchr 0.1.6.1 → 0.1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/watchr/rating.rb +4 -0
- data/lib/watchr/version.rb +1 -1
- data/spec/watchr/rating_spec.rb +9 -2
- metadata +2 -2
data/lib/watchr/rating.rb
CHANGED
data/lib/watchr/version.rb
CHANGED
data/spec/watchr/rating_spec.rb
CHANGED
@@ -6,7 +6,14 @@ describe Watchr::Rating do
|
|
6
6
|
let(:complexity_smell) {
|
7
7
|
stub('smell',
|
8
8
|
:type => Watchr::SmellTypes::COMPLEX_METHOD,
|
9
|
-
:options => {:score => 29.3}
|
9
|
+
:options => {:score => 29.3}
|
10
|
+
)
|
11
|
+
}
|
12
|
+
|
13
|
+
let(:other_smell) {
|
14
|
+
stub('smell',
|
15
|
+
:type => 'other'
|
16
|
+
)
|
10
17
|
}
|
11
18
|
|
12
19
|
let(:duplication_smell) {
|
@@ -15,7 +22,7 @@ describe Watchr::Rating do
|
|
15
22
|
:options => {:mass => 72})
|
16
23
|
}
|
17
24
|
|
18
|
-
let(:smells) { [complexity_smell, duplication_smell] }
|
25
|
+
let(:smells) { [complexity_smell, other_smell, duplication_smell] }
|
19
26
|
|
20
27
|
let(:analyse) {
|
21
28
|
analyse = stub('analyse', :smells => smells)
|