Skip to content

Commit

Permalink
Moved include of Private helpers from AR::Macros to general Macros
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed Sep 1, 2008
1 parent 424c484 commit 1d1c5e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/shoulda.rb
Expand Up @@ -13,7 +13,6 @@ class TestCase
end
end

require 'shoulda/private_helpers'
require 'shoulda/general'
require 'shoulda/active_record'
require 'shoulda/controller'
Expand Down
3 changes: 0 additions & 3 deletions lib/shoulda/active_record/macros.rb
Expand Up @@ -679,9 +679,6 @@ def should_have_named_scope(scope_call, *args)
end
end

private

include ThoughtBot::Shoulda::Private
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions lib/shoulda/macros.rb
@@ -1,3 +1,5 @@
require 'shoulda/private_helpers'

module ThoughtBot # :nodoc:
module Shoulda # :nodoc:
module Macros
Expand Down Expand Up @@ -69,6 +71,10 @@ def should_not_change(expression)
assert_equal @_before_should_not_change, new_value, "#{expression.inspect} changed"
end
end

private

include ThoughtBot::Shoulda::Private
end
end
end

0 comments on commit 1d1c5e1

Please sign in to comment.