Enable RSpec/NotToNot cop and fix all issues
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
This commit is contained in:
@@ -64,7 +64,7 @@ describe Legislation::AnnotationsController do
|
||||
"ranges" => [{"start" => "/p[1]", "startOffset" => 6, "end" => "/p[1]", "endOffset" => 11}],
|
||||
"text": "una anotacion"
|
||||
}
|
||||
end.to_not change { @draft_version.annotations.count }
|
||||
end.not_to change { @draft_version.annotations.count }
|
||||
end
|
||||
|
||||
it 'creates an annotation by parsing parameters in JSON' do
|
||||
@@ -95,7 +95,7 @@ describe Legislation::AnnotationsController do
|
||||
"ranges" => [{"start" => "/p[1]", "startOffset" => 6, "end" => "/p[1]", "endOffset" => 11}],
|
||||
"text": "una anotacion"
|
||||
}
|
||||
end.to_not change { @draft_version.annotations.count }
|
||||
end.not_to change { @draft_version.annotations.count }
|
||||
|
||||
expect(annotation.reload.comments_count).to eq(2)
|
||||
expect(annotation.comments.last.body).to eq("una anotacion")
|
||||
|
||||
@@ -35,7 +35,7 @@ describe Legislation::AnswersController do
|
||||
expect do
|
||||
xhr :post, :create, process_id: @process.id, question_id: @question.id,
|
||||
legislation_answer: { legislation_question_option_id: @question_option.id }
|
||||
end.to_not change { @question.reload.answers_count }
|
||||
end.not_to change { @question.reload.answers_count }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user