mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Lint: RSpec/ExpectInHook
This commit is contained in:
parent
b56a16d2f8
commit
987059865d
2 changed files with 0 additions and 9 deletions
|
@ -19,11 +19,6 @@ Metrics/PerceivedComplexity:
|
|||
Style/FrozenStringLiteralComment:
|
||||
Enabled: false
|
||||
|
||||
RSpec/ExpectInHook:
|
||||
Exclude:
|
||||
- spec/paper_trail/associations_spec.rb
|
||||
- spec/models/version_spec.rb
|
||||
|
||||
RSpec/InstanceVariable:
|
||||
Exclude:
|
||||
- spec/paper_trail/associations_spec.rb
|
||||
|
|
|
@ -545,16 +545,13 @@ RSpec.describe(::PaperTrail, versioning: true) do
|
|||
|
||||
context "after the first has_many through relationship is created" do
|
||||
before do
|
||||
expect(@chapter.versions.size).to(eq(1))
|
||||
@chapter.update_attributes(name: CHAPTER_NAMES[1])
|
||||
expect(@chapter.versions.size).to(eq(2))
|
||||
Timecop.travel(1.second.since)
|
||||
@chapter.sections.create(name: "section 1")
|
||||
Timecop.travel(1.second.since)
|
||||
@chapter.sections.first.update_attributes(name: "section 2")
|
||||
Timecop.travel(1.second.since)
|
||||
@chapter.update_attributes(name: CHAPTER_NAMES[2])
|
||||
expect(@chapter.versions.size).to(eq(3))
|
||||
Timecop.travel(1.second.since)
|
||||
@chapter.sections.first.update_attributes(name: "section 3")
|
||||
end
|
||||
|
@ -605,7 +602,6 @@ RSpec.describe(::PaperTrail, versioning: true) do
|
|||
|
||||
context "after creating a paragraph" do
|
||||
before do
|
||||
expect(@chapter.versions.size).to(eq(3))
|
||||
@section = @chapter.sections.first
|
||||
Timecop.travel(1.second.since)
|
||||
@paragraph = @section.paragraphs.create(name: "para1")
|
||||
|
|
Loading…
Reference in a new issue