diff --git a/docs/activegraph.rb b/docs/activegraph.rb index 943836eb3..f49c5fc98 100644 --- a/docs/activegraph.rb +++ b/docs/activegraph.rb @@ -1,6 +1,6 @@ # Usage: rails new myapp -m activegraph.rb -gem 'activegraph', '>= 11.1' +gem 'activegraph', ENV[ACTIVEGRAPH_PATH]&.then { |path| { path: } } || '>= 11.1' gem_group :development do gem 'neo4j-rake_tasks' diff --git a/e2e_tests/setup.sh b/e2e_tests/setup.sh index 0fe70e57b..5d7b9044f 100755 --- a/e2e_tests/setup.sh +++ b/e2e_tests/setup.sh @@ -5,10 +5,7 @@ rm -r ./myapp gem install rails -v $ACTIVE_MODEL_VERSION --no-document -sed 's|.*gem '"'"'activegraph'"'"'.*|gem '"'"'activegraph'"'"', path: '"'"'../'"'"'|' docs/activegraph.rb > template.tmp - -rails \_$ACTIVE_MODEL_VERSION\_ new myapp -O -m ./template.tmp -rm -f ./template.tmp +env ACTIVEGRAPH_PATH=.. rails _${ACTIVE_MODEL_VERSION}_ new myapp -O -m docs/activegraph.rb cd myapp if [[ -n "$E2E_PORT" ]]