Skip to content

Commit 18edc40

Browse files
committed
Fix JSON Store returned test path.
1 parent bd527e2 commit 18edc40

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/rails_fake_api/json_file_store_test.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class RailsFakeApi::JsonFileStoreTest < ActiveSupport::TestCase
99
FileUtils.mkdir_p(TEST_FILE_PATH) unless File.exist?(TEST_FILE_PATH)
1010
FileUtils.rm_f(Dir.glob(TEST_FILE_PATH.join('*.json')))
1111

12-
RailsFakeApi::JsonFileStore.define_singleton_method(:file_path_prefix) do
13-
TEST_FILE_PATH
14-
end
12+
RailsFakeApi::JsonFileStore.stubs(:file_path_prefix).returns(TEST_FILE_PATH)
1513
end
1614

1715
teardown do

0 commit comments

Comments
 (0)