Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
Move fixture helper into a module
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Feb 12, 2013
1 parent 0b9d1be commit 723ed05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec/spec_helper.rb
Expand Up @@ -24,7 +24,3 @@

config.use_transactional_fixtures = true
end

def fixture(name)
Rails.root.join('spec', 'fixtures', name).read
end
9 changes: 9 additions & 0 deletions spec/support/fixtures.rb
@@ -0,0 +1,9 @@
module FixtureSpecHelper
def fixture(name)
Rails.root.join('spec', 'fixtures', name).read
end
end

RSpec.configure do |config|
config.include FixtureSpecHelper
end

0 comments on commit 723ed05

Please sign in to comment.