Sha256: 5aefb6464b3b43ae32cf364fdf3da116ae93a067c2ff5cc77c7c6c2fc9bd2b64

Contents?: true

Size: 967 Bytes

Versions: 6

Compression:

Stored size: 967 Bytes

Contents

#!/usr/bin/env bash

declare -i RESULT=0

echo "Running main suite..."

bundle exec rspec
RESULT+=$?

echo "Running initial caching specs to test cold cache behavior..."

bundle exec rspec spec/integration/caching/before_changes_spec.rb
RESULT+=$?

echo "Making template source changes to allow testing of cache-busting..."

templates=(
  "spec/dummy/app/views/caching/inline.rbx"
  "spec/dummy/app/components/cached_thing_component.rbx"
  "spec/dummy/app/components/cached_class_thing_component.rb"
  "spec/dummy/app/components/cached_thing_call_component.rb"
  "spec/dummy/app/views/caching/_partial_render_partial.rbx"
)
for i in "${templates[@]}"
do
  mv $i $i.original
  mv $i.changed $i
done

echo "Running subsequent caching specs to test cache-busting of warm cache..."

bundle exec rspec spec/integration/caching/after_changes_spec.rb
RESULT+=$?

echo "Cleaning up..."

for i in "${templates[@]}"
do
  mv $i $i.changed
  mv $i.original $i
done

exit $RESULT

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbexy-2.0.0.rc5 bin/test
rbexy-2.0.0.rc4 bin/test
rbexy-2.0.0.rc3 bin/test
rbexy-2.0.0.rc2 bin/test
rbexy-2.0.0.rc1 bin/test
rbexy-2.0.0.beta9 bin/test