Skip to content

Commit d4c10e4

Browse files
author
Jake Boxer
committed
Add refactoring note to prepare_fixture helper
1 parent 45df308 commit d4c10e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/spec_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ def mock_view_registry
6565
# name - Symbol name of the fixture to prepare. The name passed here will be
6666
# looked up in the spec/fixtures directory.
6767
#
68+
# Note:
69+
#
70+
# This method exists along with change_fixture and cleanup_fixtures. If
71+
# these get used a lot more or more fixture-related functionality is added,
72+
# it may make sense to extract a Fixture class and move these methods into
73+
# it.
74+
#
6875
# Returns a string filepath representing the new location of the prepared
6976
# fixture.
7077
def prepare_fixture(name)

0 commit comments

Comments
 (0)