File tree Expand file tree Collapse file tree 5 files changed +35
-0
lines changed
Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run RSpec tests
2+ on : [push, pull_request]
3+ jobs :
4+ run-rspec-tests :
5+ strategy :
6+ matrix :
7+ version : ['7.0', '6.0']
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Set up Ruby
12+ uses : ruby/setup-ruby@v1
13+ with :
14+ ruby-version : ' 3.2'
15+ bundler-cache : true # Runs 'bundle install' and caches installed gems automatically
16+ - name : Remove the default activerecord Gem
17+ run : bundle remove activerecord
18+ - name : Add a specific version of the activerecord Gem
19+ run : bundle add activerecord --version "~> ${{ matrix.version }}" --group "development,test"
20+ - name : Run tests
21+ run : ./run_tests.sh
Original file line number Diff line number Diff line change 1+ # Ignore files related to RSpec tests
2+ foobar.db *
Original file line number Diff line number Diff line change 1+ # Gemfile
2+ source "https://rubygems.org"
3+
4+ group :development , :test do
5+ gem "activerecord"
6+ gem "rspec"
7+ gem "sqlite3"
8+ end
Original file line number Diff line number Diff line change 1+ # Run RSpec tests
2+ bundle exec rspec --exclude-pattern " spec/load_spec.rb" --format documentation
3+ bundle exec rspec spec/load_spec.rb --format documentation
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17+ require 'safe_active_record/load'
1718require 'safe_active_record/safe_query_manager'
1819
1920describe SafeActiveRecord ::SafeQueryManager do
You can’t perform that action at this time.
0 commit comments