Skip to content

Commit

Permalink
Rspec mock deprecation
Browse files Browse the repository at this point in the history
As of rspec-mocks 2.14.0 `mock` was delegated, `double` should be used
instead. For more details see

rspec/rspec-mocks#214
  • Loading branch information
adamphillips committed Jan 12, 2014
1 parent 785c866 commit 59c4050
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/lib/formatter_spec.rb
Expand Up @@ -8,10 +8,10 @@ module CodeClimate::TestReporter
let(:formatter) { Formatter.new }
let(:files) {
[
mock(
:lines => [mock, mock, mock],
:covered_lines => [mock, mock],
:missed_lines => [mock],
double(
:lines => [double, double, double],
:covered_lines => [double, double],
:missed_lines => [double],
:filename => project_file,
:coverage => [0,3,2,nil],
:covered_percent => 33.2,
Expand All @@ -21,7 +21,7 @@ module CodeClimate::TestReporter
}

let(:simplecov_result) {
mock(
double(
:covered_percent => 24.3,
:covered_strength => 33.2,
:files => files,
Expand Down

0 comments on commit 59c4050

Please sign in to comment.