Skip to content

Commit

Permalink
Release 0.3.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrutherford committed Mar 31, 2009
1 parent 0de59ff commit c1ae92f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/reek.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
require 'reek/smells/smells'

module Reek # :doc:
VERSION = '0.3.1.5'
VERSION = '0.3.1.6'
end
16 changes: 16 additions & 0 deletions lib/reek/spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module Reek
#
# Provides matchers for Rspec, making it easy to check code quality.
#
# If you require this module somewhere within your spec (or in your spec_helper),
# Reek will arrange to update Spec::Runner's config so that it knows about the
# matchers defined here.
#
# === Examples
#
# Here's a spec that ensures there are no smell warnings in the current project:
Expand All @@ -17,6 +21,12 @@ module Reek
# end
# end
#
# And here's an even simpler way to do the same:
#
# it 'has no code smells' do
# Dir['lib/**/*.rb'].should_not reek
# end
#
# Here's a simple check of a code fragment:
#
# 'def equals(other) other.thing == self.thing end'.should_not reek
Expand Down Expand Up @@ -128,3 +138,9 @@ def to_source
end
end
end

if Object.const_defined?(:Spec)
Spec::Runner.configure do |config|
config.include(Reek::Spec)
end
end
4 changes: 0 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@
end

require 'reek/spec'

Spec::Runner.configure do |config|
config.include(Reek::Spec)
end

0 comments on commit c1ae92f

Please sign in to comment.