Skip to content

Commit

Permalink
[ci skip] Fix example code of ActiveRecord::FixtureSet.context_class
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Aug 29, 2014
1 parent 0cc22f4 commit 2c8badd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/fixtures.rb
Expand Up @@ -126,7 +126,7 @@ class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc:
# that is included in <tt>ActiveRecord::FixtureSet.context_class</tt>.
#
# - define a helper method in `test_helper.rb`
# class FixtureFileHelpers
# module FixtureFileHelpers
# def file_sha(path)
# Digest::SHA2.hexdigest(File.read(Rails.root.join('test/fixtures', path)))
# end
Expand Down
2 changes: 1 addition & 1 deletion guides/source/upgrading_ruby_on_rails.md
Expand Up @@ -393,7 +393,7 @@ included in the newly introduced `ActiveRecord::FixtureSet.context_class`, in
`test_helper.rb`.

```ruby
class FixtureFileHelpers
module FixtureFileHelpers
def file_sha(path)
Digest::SHA2.hexdigest(File.read(Rails.root.join('test/fixtures', path)))
end
Expand Down

0 comments on commit 2c8badd

Please sign in to comment.