Instead use a Ruby file in the fixtures root directory (spec/javascripts/fixtures/).
spec/javascripts/fixtures/