Skip to content

Commit

Permalink
simplified config for e2e_test
Browse files Browse the repository at this point in the history
  • Loading branch information
klobuczek committed Sep 25, 2024
1 parent eb0c5eb commit 2e486c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/activegraph.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
5 changes: 1 addition & 4 deletions e2e_tests/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
Expand Down

0 comments on commit 2e486c8

Please sign in to comment.