
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Dynamically generate Rails and Sinatra apps to be tested by Rack::Test
.
It is annoying to commit a bunch of Rails apps to my projects solely for the purpose of testing.
Seems more DRY to generate them when I run the test and automatically copy specific files into it.
gem install framework_fixture
rails: <3: rails2: - app/controllers/application_controller.rb - config/environment.rb - config/routes.rb <4: rails3: - app/controllers/application_controller.rb - config/application.rb - config/routes.rb - Gemfile sinatra: <1: sinatra: - application.rb <2: sinatra: - application.rb
(See specs for example of what this configuration maps to)
require 'rubygems' require 'framework_fixture' FrameworkFixture.generate(File.dirname(__FILE__) + '/fixtures')
require 'spec_helper' if FrameworkFixture.rails == '<4' describe 'Rails 3' do include Rack::Test::Methods def app FrameworkFixture.app.call end it "should have a pulse" do get "/pulse" last_response.body.should == '1' end end end
RAILS_ENV=test RAILS=3 spec spec SINATRA=1 spec spec
FAQs
Unknown package
We found that framework_fixture demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.