Fix Style/EmptyLines

This commit is contained in:
Jared Beck 2016-02-15 22:20:42 -05:00
parent 06fb4fc1e5
commit 5f91691206
3 changed files with 0 additions and 23 deletions

View File

@ -67,13 +67,6 @@ Style/DoubleNegation:
Exclude:
- 'lib/paper_trail.rb'
# Offense count: 17
# Cop supports --auto-correct.
Style/EmptyLines:
Exclude:
- 'Rakefile'
- 'test/unit/model_test.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLinesAroundAccessModifier:

View File

@ -7,7 +7,6 @@ task :prepare do
FileUtils.cp "test/dummy/config/database.#{ENV["DB"]}.yml", "test/dummy/config/database.yml"
end
require 'rake/testtask'
desc 'Run tests on PaperTrail with Test::Unit.'
Rake::TestTask.new(:test) do |t|

View File

@ -295,7 +295,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'and then updated with changes' do
setup { @widget.update_attributes :name => 'Harry' }
@ -444,7 +443,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
# Test the serialisation and deserialisation.
# TODO: binary
context "A record's papertrail" do
@ -513,7 +511,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
assert @previous.a_boolean
end
context "after a column is removed from the record's schema" do
setup do
change_schema
@ -545,7 +542,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'A record' do
setup { @widget = Widget.create :name => 'Zaphod' }
@ -633,7 +629,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'A papertrail with somebody making changes' do
setup do
@widget = Widget.new :name => 'Fidget'
@ -685,7 +680,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'Timestamps' do
setup do
@wotsit = Wotsit.create! :name => 'wotsit'
@ -721,7 +715,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'A subclass' do
setup do
@foo = FooWidget.create
@ -754,7 +747,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'An item with versions' do
setup do
@widget = Widget.create :name => 'Widget'
@ -868,7 +860,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'An item' do
setup do
@initial_title = 'Foobar'
@ -898,7 +889,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
assert_equal @initial_title, @article.versions.last.title
end
context 'and updated' do
setup do
@article.update_attributes! :content => 'Better text.', :title => 'Rhubarb'
@ -921,7 +911,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'and destroyed' do
setup { @article.destroy }
@ -961,7 +950,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'A non-reified item' do
setup { @widget = Widget.new }
@ -1181,7 +1169,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'A new model instance which uses a custom PaperTrail::Version class' do
setup { @post = Post.new }
@ -1227,7 +1214,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'An overwritten default accessor' do
setup do
@song = Song.create :length => 4
@ -1257,7 +1243,6 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
end
end
context 'An unsaved record' do
setup do
@widget = Widget.new