Skip to content

Commit

Permalink
Change description for 'method summary' rules
Browse files Browse the repository at this point in the history
  • Loading branch information
John Backus committed Oct 5, 2015
1 parent 8851a76 commit 4d6a123
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions lib/yardstick/rules/summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Summary
# Checks if method summary is present
#
class Presence < Rule
self.description = 'The method summary should be specified'
self.description = 'method summary should be specified'

# @see Rule::validatable?
#
Expand Down Expand Up @@ -36,7 +36,7 @@ def valid?
class Length < Rule
MAXIMUM_LINE_LENGTH = 79

self.description = 'The method summary should be less than or equal to 79 characters in length'
self.description = 'method summary should be less than or equal to 79 characters in length'

# @see class description
#
Expand All @@ -52,7 +52,7 @@ def valid?
# Checks that method summary doesn't end with a period
#
class Delimiter < Rule
self.description = 'The method summary should not end in a period'
self.description = 'method summary should not end in a period'

# @see class description
#
Expand All @@ -70,7 +70,7 @@ def valid?
class SingleLine < Rule
LINE_BREAK_CHARACTER = "\n"

self.description = 'The method summary should be a single line'
self.description = 'method summary should be a single line'

# @see class description
#
Expand Down
20 changes: 10 additions & 10 deletions spec/integration/yardstick/processor/process_string_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def measurement(description)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has a correct measurement' do
expect(measurement('The method summary should be specified')).to be_ok
expect(measurement('method summary should be specified')).to be_ok
end
end

Expand All @@ -49,7 +49,7 @@ def measurement(description)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has an incorrect measurement' do
expect(measurement('The method summary should be specified')).to_not be_ok
expect(measurement('method summary should be specified')).to_not be_ok
end
end

Expand All @@ -64,7 +64,7 @@ def measurement(description)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has a correct measurement' do
expect(measurement('The method summary should be specified')).to be_ok
expect(measurement('method summary should be specified')).to be_ok
end
end

Expand All @@ -79,7 +79,7 @@ def measurement(description)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has a correct measurement' do
expect(measurements.detect { |measurement| measurement.description == 'The method summary should be specified' }).to be_ok
expect(measurements.detect { |measurement| measurement.description == 'method summary should be specified' }).to be_ok
end
end

Expand All @@ -89,7 +89,7 @@ def measurement(description)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has a correct measurement' do
expect(measurement('The method summary should be less than or equal to 79 characters in length'))
expect(measurement('method summary should be less than or equal to 79 characters in length'))
.to be_ok
end
end
Expand All @@ -106,7 +106,7 @@ def test(value)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has an incorrect measurement' do
expect(measurement('The method summary should be less than or equal to 79 characters in length'))
expect(measurement('method summary should be less than or equal to 79 characters in length'))
.to_not be_ok
end
end
Expand All @@ -117,7 +117,7 @@ def test(value)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has a correct measurement' do
expect(measurement('The method summary should not end in a period'))
expect(measurement('method summary should not end in a period'))
.to be_ok
end
end
Expand All @@ -134,7 +134,7 @@ def test(value)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has an incorrect measurement' do
expect(measurement('The method summary should not end in a period'))
expect(measurement('method summary should not end in a period'))
.to_not be_ok
end
end
Expand All @@ -145,7 +145,7 @@ def test(value)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has a correct measurement' do
expect(measurement('The method summary should be a single line'))
expect(measurement('method summary should be a single line'))
.to be_ok
end
end
Expand All @@ -163,7 +163,7 @@ def test(value)
it { should be_kind_of(Yardstick::MeasurementSet) }

it 'has an incorrect measurement' do
expect(measurement('The method summary should be a single line'))
expect(measurement('method summary should be a single line'))
.to_not be_ok
end
end
Expand Down

0 comments on commit 4d6a123

Please sign in to comment.