repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/db/seeds.rb
rails-app-with-knapsack_pro/db/seeds.rb
# This file should ensure the existence of records required to run the application in every environment (production, # development, test). The code here should be idempotent so that it can be executed at any point in every environment. # The data can then be loaded with the bin/rails db:seed command (or created alongsi...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/db/queue_schema.rb
rails-app-with-knapsack_pro/db/queue_schema.rb
ActiveRecord::Schema[7.1].define(version: 1) do create_table "solid_queue_blocked_executions", force: :cascade do |t| t.bigint "job_id", null: false t.string "queue_name", null: false t.integer "priority", default: 0, null: false t.string "concurrency_key", null: false t.datetime "expires_at", nul...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/db/cache_schema.rb
rails-app-with-knapsack_pro/db/cache_schema.rb
ActiveRecord::Schema[7.2].define(version: 1) do create_table "solid_cache_entries", force: :cascade do |t| t.binary "key", limit: 1024, null: false t.binary "value", limit: 536870912, null: false t.datetime "created_at", null: false t.integer "key_hash", limit: 8, null: false t.integer "byte_size"...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/db/schema.rb
rails-app-with-knapsack_pro/db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/db/cable_schema.rb
rails-app-with-knapsack_pro/db/cable_schema.rb
ActiveRecord::Schema[7.1].define(version: 1) do create_table "solid_cable_messages", force: :cascade do |t| t.binary "channel", limit: 1024, null: false t.binary "payload", limit: 536870912, null: false t.datetime "created_at", null: false t.integer "channel_hash", limit: 8, null: false t.index ["...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/db/migrate/20251222175834_create_articles.rb
rails-app-with-knapsack_pro/db/migrate/20251222175834_create_articles.rb
class CreateArticles < ActiveRecord::Migration[8.1] def change create_table :articles do |t| t.string :title t.text :body t.timestamps end end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/test_helper.rb
rails-app-with-knapsack_pro/test/test_helper.rb
ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' require 'minitest/spec' require 'knapsack_pro' # CUSTOM_CONFIG_GOES_HERE KnapsackPro::Hooks::Queue.before_queue do |queue_id| print '-'*10 print 'Before Queue Hook - run before the test suite' pr...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/dir with spaces/foobar_spec_test.rb
rails-app-with-knapsack_pro/test/dir with spaces/foobar_spec_test.rb
require 'test_helper' class MemeDirWithSpacesTest < ActiveSupport::TestCase before do @meme = Meme.new end #describe "when asked about cheeseburgers" do it "must respond positively - dir with spaces" do _(@meme.i_can_has_cheezburger?).must_equal "OHAI!" end #describe "when asked about blending po...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/minitest_spec_rails/shared_examples_test.rb
rails-app-with-knapsack_pro/test/minitest_spec_rails/shared_examples_test.rb
require 'test_helper' # we should not use describe # describe "test that use SharedExamples" do # RSpec 3 is also moving away from the outer describe test type inference # https://github.com/metaskills/minitest-spec-rails#test-styles #class TestMinitestSpecRails < ActiveSupport::TestCase #it "a test in with minitest...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/minitest/meme_unit_test.rb
rails-app-with-knapsack_pro/test/minitest/meme_unit_test.rb
require 'test_helper' # This test never run because it will be override by test/minitest_duplicated/meme_unit_test.rb class TestMeme < Minitest::Test def setup @meme = Meme.new end def test_that_kitty_can_eat puts 'Meme first test with minitest syntax' assert_equal "OHAI!", @meme.i_can_has_cheezburg...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/minitest/meme_spec_test.rb
rails-app-with-knapsack_pro/test/minitest/meme_spec_test.rb
require 'test_helper' class MemeTest < ActiveSupport::TestCase before do @meme = Meme.new end # test inside of describe won't be run when rspec is loaded, due to conflict: # https://stackoverflow.com/questions/23683009/minitest-not-picking-up-describe-blocks # To fix it we need to ensure rspec is not lo...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/controllers/pending_controller_test.rb
rails-app-with-knapsack_pro/test/controllers/pending_controller_test.rb
require 'test_helper' # Uncomment below line only if you test # bin/edge_cases/knapsack_pro_queue_minitest_missing_constant # # This wil cause minitest to fail and the tests run will be stopped. # The CI node won't record timing. #MissingConstantHereToTestDefect class PendingControllerTest < ActionController::TestCas...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/controllers/welcome_controller_test.rb
rails-app-with-knapsack_pro/test/controllers/welcome_controller_test.rb
require 'test_helper' class WelcomeControllerTest < ActionController::TestCase test "should get index" do get :index assert_response :success end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/controllers/articles_controller_test.rb
rails-app-with-knapsack_pro/test/controllers/articles_controller_test.rb
require 'test_helper' class ArticlesControllerTest < ActionController::TestCase setup do @article = articles(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:articles) end test "should get new" do get :new assert_response :success en...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/minitest_shared_examples/shared_examples_test.rb
rails-app-with-knapsack_pro/test/minitest_shared_examples/shared_examples_test.rb
require 'test_helper' class TestThatUsesSharedExamples < Minitest::Test include SharedExampleSpec end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/models/article_test.rb
rails-app-with-knapsack_pro/test/models/article_test.rb
require 'test_helper' class ArticleTest < ActiveSupport::TestCase test "the truth" do assert true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/minitest_duplicated/meme_unit_test.rb
rails-app-with-knapsack_pro/test/minitest_duplicated/meme_unit_test.rb
require 'test_helper' # This test is a duplicated test of test/minitest/meme_unit_test.rb # It will override the origin test and only this duplicated test will run class TestMemeDuplicated < Minitest::Test def setup @meme = Meme.new end def test_that_kitty_can_eat puts 'Meme duplicated second test with ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/minitest_duplicated/meme_spec_test.rb
rails-app-with-knapsack_pro/test/minitest_duplicated/meme_spec_test.rb
require 'test_helper' # Duplicate name of the class so we can run 2 similar test files. # Minitest requires unique name in describe if you duplicated test file. class MemeDuplicatedTest < ActiveSupport::TestCase before do @meme = Meme.new end #describe "when asked about cheeseburgers" do it "must respond...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/rake_tasks/dummy_rake_test.rb
rails-app-with-knapsack_pro/test/rake_tasks/dummy_rake_test.rb
require 'test_helper' class DummyRakeTest < ActiveSupport::TestCase setup do Rake.application.rake_require("tasks/dummy") Rake::Task.define_task(:environment) end teardown do Rake::Task["dummy:do_something_once"].reenable DummyOutput.count = 0 end test "calls the rake task (increases counte...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/test/rake_tasks/another_rake_test.rb
rails-app-with-knapsack_pro/test/rake_tasks/another_rake_test.rb
require 'test_helper' class AnotherDummyRakeTest < ActiveSupport::TestCase setup do # before(:all) @@setup ||= begin Rake.load_rakefile("tasks/another_dummy.rake") Rake::Task.define_task(:environment) end end teardown do Rake::Task["another_dummy:do_something_once"].reenable AnotherD...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spinach_features/support/knapsack_pro.rb
rails-app-with-knapsack_pro/spinach_features/support/knapsack_pro.rb
require 'knapsack_pro' KnapsackPro::Adapters::SpinachAdapter.bind
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spinach_features/support/env.rb
rails-app-with-knapsack_pro/spinach_features/support/env.rb
ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../../config/environment', __FILE__) require 'rspec/rails'
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spinach_features/steps/test_how_spinach_works_for_test_in_directory_with_spaces.rb
rails-app-with-knapsack_pro/spinach_features/steps/test_how_spinach_works_for_test_in_directory_with_spaces.rb
class Spinach::Features::TestHowSpinachWorksForTestInDirectoryWithSpaces < Spinach::FeatureSteps step 'I have an empty array' do end step 'I append only my first name to it' do end step 'I pass it to my super-duper method' do end step 'the output should contain a casual greeting' do end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spinach_features/steps/test_how_spinach_works_for_first_test.rb
rails-app-with-knapsack_pro/spinach_features/steps/test_how_spinach_works_for_first_test.rb
class Spinach::Features::TestHowSpinachWorksForFirstTest < Spinach::FeatureSteps step 'I have an empty array' do end step 'I append my first name and my last name to it' do end step 'I pass it to my super-duper method' do end step 'the output should contain a formal greeting' do end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spinach_features/steps/test_how_spinach_works_for_second_test.rb
rails-app-with-knapsack_pro/spinach_features/steps/test_how_spinach_works_for_second_test.rb
class Spinach::Features::TestHowSpinachWorksForSecondTest < Spinach::FeatureSteps step 'I have an empty array' do end step 'I append only my first name to it' do end step 'I pass it to my super-duper method' do end step 'the output should contain a casual greeting' do end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/features/support/knapsack_pro.rb
rails-app-with-knapsack_pro/features/support/knapsack_pro.rb
require 'knapsack_pro' # CUSTOM_CONFIG_GOES_HERE KnapsackPro::Hooks::Queue.before_queue do |queue_id| print '-'*10 print 'Before Queue Hook - run before the test suite' print '-'*10 end KnapsackPro::Hooks::Queue.before_subset_queue do |queue_id, subset_queue_id| print '-'*10 print 'Before Subset Queue Hook ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/features/support/env.rb
rails-app-with-knapsack_pro/features/support/env.rb
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. # It is recommended to regenerate this file in the future when you upgrade to a # newer version of cucumber-rails. Consider adding your own code to a new file # instead of editing this one. Cucumber will automatically load all features/**/*...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/features/step_definitions/welcome_steps.rb
rails-app-with-knapsack_pro/features/step_definitions/welcome_steps.rb
Given /^I visit welcome page$/ do visit root_path end When /^I click on calculator link$/ do click_link 'Calculator' end When /^I should be on calculator page$/ do # flaky test for cucumber config: # --retry 5 --no-strict-flaky] #expect([1,2].sample).to eq 1 #expect(2).to eq 1 #expect(find('#task1 .des...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/features/step_definitions/rake_steps.rb
rails-app-with-knapsack_pro/features/step_definitions/rake_steps.rb
Given('I rake_require {string}') do |path| Rake.application.rake_require(path) Rake::Task.define_task(:environment) end When('I invoke the {string} task') do |task| Rake::Task[task].invoke end Then('the count on {string} equals {int}') do |klass, int| expect(Object.const_get(klass).count).to eq(int) end Give...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/features/step_definitions/calculator_steps.rb
rails-app-with-knapsack_pro/features/step_definitions/calculator_steps.rb
Given /^I visit calculator$/ do visit calculator_index_path end When /^there are ([0-9]+) cucumbers$/ do |cucumbers| fill_in 'calculator[x]', with: cucumbers end When /^I add ([0-9]+) cucumbers$/ do |cucumbers| fill_in 'calculator[y]', with: cucumbers click_button 'Add' end Then /^I should have ([0-9]+) cucu...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/bin/collect_junit_xml_reports.rb
rails-app-with-knapsack_pro/bin/collect_junit_xml_reports.rb
# How to use it: # ruby bin/collect_junit_xml_reports.rb > tmp/junit_test_cases_summary.txt && cat tmp/junit_test_cases_summary.txt # ruby bin/collect_junit_xml_reports.rb > tmp/junit_test_cases_summary2.txt && cat tmp/junit_test_cases_summary2.txt # # Show a diff: # git diff --no-index tmp/junit_test_cases_summary.txt...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/bin/knapsack_pro_all.rb
rails-app-with-knapsack_pro/bin/knapsack_pro_all.rb
require 'securerandom' COMMANDS = { './bin/knapsack_pro_a_few_commands' => ['0 2 BUILD_ID', '1 2 BUILD_ID'], # RSpec './bin/knapsack_pro_rspec' => ['0 2 BUILD_ID', '1 2 BUILD_ID'], './bin/knapsack_pro_rspec_user_seat' => ['0 2 BUILD_ID', '1 2 BUILD_ID'], './bin/knapsack_pro_rspec_cache_read_attempt' => ['0 ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/timecop_spec.rb
rails-app-with-knapsack_pro/spec/timecop_spec.rb
describe 'Timecop' do let(:time_1) { Time.local(2015, 12, 1) } let(:time_2) { Time.local(2016, 1, 21) } it 'travel in time' do sleep 1 Timecop.travel(time_1) expect(Time.now.year).to eq 2015 expect(Time.now.month).to eq 12 expect(Time.now.day).to eq 1 Timecop.travel(time_2) expect(...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/foo_spec.rb
rails-app-with-knapsack_pro/spec/foo_spec.rb
describe 'Foo' do it 'Foo 1 - tag_x', :tag_x do end it 'Foo 2' do end it 'Foo 3' do if ENV['KNAPSACK_PRO_QUEUE_ID'] && ENV['CI'] # slow down so the same queue can start on both CI nodes sleep 10 end expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/rails_helper.rb
rails-app-with-knapsack_pro/spec/rails_helper.rb
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV['RAILS_ENV'] ||= 'test' require 'spec_helper' require File.expand_path('../../config/environment', __FILE__) require 'rspec/rails' require 'capybara/rspec' require 'capybara-screenshot/rspec' require 'timecop' # https://github.com/rails/ra...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/time_tracker_spec.rb
rails-app-with-knapsack_pro/spec/time_tracker_spec.rb
# Needed to reproduce the issue: # https://github.com/KnapsackPro/knapsack_pro-ruby/pull/265 require 'spec_helper' describe "Verify KnapsackPro::Formatters::TimeTracker works for Regular Mode in the knapsack_pro gem when the .rspec file does not exist (it does not load spec_helper by default at RSpec start), but spec_...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/retry_spec.rb
rails-app-with-knapsack_pro/spec/retry_spec.rb
describe 'Retry' do it 'should randomly succeed', retry: 100 do expect(rand(2)).to eq(1) end xit 'should fail always', retry: 3 do expect(true).to eq(false) end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/bar_spec.rb
rails-app-with-knapsack_pro/spec/bar_spec.rb
describe 'Bar', :tag_a do it 'Bar 1' do expect(Article.new).to be_kind_of Article end it 'Bar 2 - tag_x', :tag_x do end it 'Bar 3 - tag_x', :tag_x do end it 'Bar 4 - tag_x AND tag_y', :tag_x, :tag_y do end it 'Bar 5 - I might fail', :skip_me_or_i_will_fail do if ENV['SKIP_ME_OR_I_WILL_FAI...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/time_helpers_spec.rb
rails-app-with-knapsack_pro/spec/time_helpers_spec.rb
# We on purpose slown down each test by 1s. # We expect to see the file to took ~3s in knapsack pro dashboard. # This way we can validate if the ActiveSupport::Testing::TimeHelpers # have impact on the way how knapsack_pro measures the timing for tests. describe 'Time travel with ActiveSupport::Testing::TimeHelpers' do...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/vcr_spec.rb
rails-app-with-knapsack_pro/spec/vcr_spec.rb
describe 'VCR' do it do VCR.use_cassette("synopsis") do response = Net::HTTP.get_response(URI('http://www.iana.org/domains/reserved')) expect(response.body).to include('Example domains') end end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/pending_spec.rb
rails-app-with-knapsack_pro/spec/pending_spec.rb
describe 'Pending' do xit do expect(Article.new).to be_kind_of Article end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/collection_spec.rb
rails-app-with-knapsack_pro/spec/collection_spec.rb
require "set" shared_examples "a collection" do let(:collection) { described_class.new([7, 2, 4]) } context "initialized with 3 items" do it "says it has three items" do expect(collection.size).to eq(3) end end describe "#include?" do context "with an an item that is in the collection" do ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/system_exit_spec.rb
rails-app-with-knapsack_pro/spec/system_exit_spec.rb
describe 'SystemExit' do it do expect(true).to be true end # uncomment this exception to test scenario when RSpec raises an exception # and Knapsack Pro should catch it and call the Knapsack Pro Queue Mode hooks # More: https://github.com/KnapsackPro/knapsack_pro-ruby/pull/214 #raise SystemExit end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/track_context_time_spec.rb
rails-app-with-knapsack_pro/spec/track_context_time_spec.rb
# https://github.com/KnapsackPro/knapsack/pull/107 describe 'Track context time' do context 'when something' do before(:context) do sleep(2) end after(:context) do sleep(3) end before do sleep(0.1) end it 'test 1' do sleep(0.2) expect(true).to be_truthy ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/spec_helper.rb
rails-app-with-knapsack_pro/spec/spec_helper.rb
require 'async/rspec' require 'knapsack_pro' require 'simplecov' if ENV['CI'] require 'simplecov_json_formatter' SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter end SimpleCov.start KnapsackPro::Hooks::Queue.before_queue do |queue_id| SimpleCov.command_name("rspec_ci_node_#{KnapsackPro::Config::Env.c...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/slow_shared_examples_spec.rb
rails-app-with-knapsack_pro/spec/slow_shared_examples_spec.rb
RSpec.shared_context "shared stuff", :shared_context => :metadata do before do sleep 1 sleep ENV['EXTRA_TEST_FILES_DELAY'].to_i end end describe 'Example of slow shared examples' do # this should add 1s for each it below including # shared example. include_context "shared stuff" # this should add ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/options_spec.rb
rails-app-with-knapsack_pro/spec/options_spec.rb
# https://rspec.info/features/3-12/rspec-core/configuration/read-options-from-file/ describe 'RSpec Options' do if ENV['RSPEC_CUSTOM_OPTIONS_ENABLED'] it { expect(RSpec.configuration.color_mode).to eq :off } else it { expect(RSpec.configuration.color_mode).to eq :automatic } end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/dir with spaces/foobar_spec.rb
rails-app-with-knapsack_pro/spec/dir with spaces/foobar_spec.rb
describe 'FooBar' do it do expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/services/meme_spec.rb
rails-app-with-knapsack_pro/spec/services/meme_spec.rb
describe Meme do describe '#i_can_has_cheezburger?' do it do expect(subject.i_can_has_cheezburger?).to eq "OHAI!" end end describe '#will_it_blend?' do it do expect(subject.will_it_blend?).to eq "YES!" end end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/services/calculator_spec.rb
rails-app-with-knapsack_pro/spec/services/calculator_spec.rb
describe Calculator do it_behaves_like 'calculator' describe '#add' do it do expect(subject.add(2, 3)).to eq 5 end end describe '#mal' do it do expect(subject.mal(2, 3)).to eq 6 end end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/support/vcr.rb
rails-app-with-knapsack_pro/spec/support/vcr.rb
require 'vcr' VCR.configure do |config| config.cassette_library_dir = "spec/fixtures/vcr_cassettes" config.hook_into :webmock config.ignore_localhost = true end require 'webmock/rspec' WebMock.disable_net_connect! # Needed to test https://github.com/KnapsackPro/knapsack_pro-ruby/pull/251
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/support/shared_specs.rb
rails-app-with-knapsack_pro/spec/support/shared_specs.rb
require 'spec_helper' # Shared Specs # # Shared specs are meant to aid you splitting up tests that logically belong to a common describe parent into # multiple files so that there is more fluidity for distributing tests over multiple processes and in particular # Circle Ci. The aim is to allow splitting up into multip...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/support/shared_examples/slow.rb
rails-app-with-knapsack_pro/spec/support/shared_examples/slow.rb
shared_examples 'slow shared example test' do it do sleep 1.5 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/support/shared_examples/calculator.rb
rails-app-with-knapsack_pro/spec/support/shared_examples/calculator.rb
shared_examples 'has add method' do it 'add is true' do expect(subject.respond_to?(:add)).to be true end end shared_examples 'has mal method' do it 'mal is true' do expect(subject.respond_to?(:mal)).to be true end end shared_examples 'calculator' do it_behaves_like 'has add method' it_behaves_like...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/support/config/database_cleaner.rb
rails-app-with-knapsack_pro/spec/support/config/database_cleaner.rb
require 'database_cleaner' RSpec.configure do |config| config.use_transactional_fixtures = false config.before(:suite) do if config.use_transactional_fixtures? raise(<<-MSG) Delete line `config.use_transactional_fixtures = true` from rails_helper.rb (or set it to false) to prevent uncom...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/support/config/rspec_retry.rb
rails-app-with-knapsack_pro/spec/support/config/rspec_retry.rb
require 'rspec/retry' RSpec.configure do |config| # show retry status in spec process config.verbose_retry = true # show exception that triggers a retry if verbose_retry is set to true config.display_try_failure_messages = true # --fail-fast option makes RSpec fail after X failed tests. This can lead to can...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/controllers/pending_controller_spec.rb
rails-app-with-knapsack_pro/spec/controllers/pending_controller_spec.rb
# Uncomment below line only if you test # bin/edge_cases/knapsack_pro_queue_rspec_missing_constant # #MissingConstantHereToTestDefect describe PendingController do xit do expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/controllers/shared_articles_controller_spec.rb
rails-app-with-knapsack_pro/spec/controllers/shared_articles_controller_spec.rb
require_relative 'shared' nested_shared_specs_for_articles_controller_index do it do subject expect(assigns(:articles)).to eq articles expect(response).to be_successful end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/controllers/welcome_controller_spec.rb
rails-app-with-knapsack_pro/spec/controllers/welcome_controller_spec.rb
describe WelcomeController do describe '#index' do before do get :index end it do expect(response).to be_successful end end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/controllers/articles_controller_spec.rb
rails-app-with-knapsack_pro/spec/controllers/articles_controller_spec.rb
# Change :xfocus to :focus to test behaviour when # config.filter_run_when_matching :focus is set in spec/spec_helper.rb describe ArticlesController, :xfocus do describe '#index' do let(:articles) do [ Article.create(title: 'Article 1'), Article.create(title: 'Article 2'), ] end ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/controllers/shared.rb
rails-app-with-knapsack_pro/spec/controllers/shared.rb
describe_shared_specs_for(:articles_controller) do describe ArticlesController do describe 'root tests in articles controller' do run_shared_specs! end end end described_nested_shared_specs_for(:articles_controller, :index) do describe "#index" do subject { get :index } context "when found...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/controllers/dashboard/pending_controller_spec.rb
rails-app-with-knapsack_pro/spec/controllers/dashboard/pending_controller_spec.rb
describe PendingController do xit do expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/async/reactor_spec.rb
rails-app-with-knapsack_pro/spec/async/reactor_spec.rb
# https://github.com/socketry/async-rspec#async-reactor require 'async/io' RSpec.describe Async::IO, timeout: 5 do include_context Async::RSpec::Reactor let(:pipe) { IO.pipe } let(:input) { Async::IO::Generic.new(pipe.first) } let(:output) { Async::IO::Generic.new(pipe.last) } it "should send and receive d...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/features/calculator_spec.rb
rails-app-with-knapsack_pro/spec/features/calculator_spec.rb
describe 'Calculator Page', :tag_a do before do visit calculator_index_path end context 'when try to add without provided numbers' do it 'result is 0' do click_button 'Add' expect(page).to have_content 'Result is 0' end end context 'when add two numbers' do it 'result is 0' do ...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/features/homepage_spec.rb
rails-app-with-knapsack_pro/spec/features/homepage_spec.rb
describe 'Homepage Features' do before do visit root_path end it 'has welcome text' do expect(page).to have_content 'Welcome' end it 'has link to calculator page' do click_link 'Calculator' expect(current_path).to eq calculator_index_path end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/rake_tasks/dummy_rake_spec.rb
rails-app-with-knapsack_pro/spec/rake_tasks/dummy_rake_spec.rb
describe 'Dummy rake' do describe "dummy:do_something_once" do let(:task_name) { "dummy:do_something_once" } let(:task) { Rake::Task[task_name] } context 'when Rake.application.rake_require is used to load the rake task' do before do Rake.application.rake_require("tasks/dummy") Rake...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec/rake_tasks/another_dummy_rake_spec.rb
rails-app-with-knapsack_pro/spec/rake_tasks/another_dummy_rake_spec.rb
describe 'Another dummy rake' do describe "another_dummy:do_something_once" do let(:task_name) { "another_dummy:do_something_once" } let(:task) { Rake::Task[task_name] } context 'when Rake.load_rakefile is used to load the rake task' do before(:all) do # Need to guard the load_rakefile beca...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/12_spec.rb
rails-app-with-knapsack_pro/spec_examples/12_spec.rb
describe 'example' do it do sleep 1.2 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/8_spec.rb
rails-app-with-knapsack_pro/spec_examples/8_spec.rb
describe 'example' do it do sleep 0.8 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/10_spec.rb
rails-app-with-knapsack_pro/spec_examples/10_spec.rb
describe 'example' do it do sleep 1 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/6_spec.rb
rails-app-with-knapsack_pro/spec_examples/6_spec.rb
describe 'example' do it do sleep 0.6 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/7_spec.rb
rails-app-with-knapsack_pro/spec_examples/7_spec.rb
describe 'example' do it do sleep 0.7 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/9_spec.rb
rails-app-with-knapsack_pro/spec_examples/9_spec.rb
describe 'example' do it do sleep 0.9 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/4_spec.rb
rails-app-with-knapsack_pro/spec_examples/4_spec.rb
describe 'example' do it do sleep 0.4 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/3_spec.rb
rails-app-with-knapsack_pro/spec_examples/3_spec.rb
describe 'example' do it do sleep 0.3 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/1_spec.rb
rails-app-with-knapsack_pro/spec_examples/1_spec.rb
describe 'example' do it do sleep 0.1 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/13_spec.rb
rails-app-with-knapsack_pro/spec_examples/13_spec.rb
describe 'example' do it do sleep 1.3 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/15_spec.rb
rails-app-with-knapsack_pro/spec_examples/15_spec.rb
describe 'example' do it do sleep 1.5 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/11_spec.rb
rails-app-with-knapsack_pro/spec_examples/11_spec.rb
describe 'example' do it do sleep 1.1 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/14_spec.rb
rails-app-with-knapsack_pro/spec_examples/14_spec.rb
describe 'example' do it do sleep 1.4 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/2_spec.rb
rails-app-with-knapsack_pro/spec_examples/2_spec.rb
describe 'example' do it do sleep 0.2 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/5_spec.rb
rails-app-with-knapsack_pro/spec_examples/5_spec.rb
describe 'example' do it do sleep 0.5 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/spec_examples/16_spec.rb
rails-app-with-knapsack_pro/spec_examples/16_spec.rb
describe 'example' do it do sleep 1.6 expect(true).to be true end end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/ci.rb
rails-app-with-knapsack_pro/config/ci.rb
# Run using bin/ci CI.run do step "Setup", "bin/setup --skip-server" step "Style: Ruby", "bin/rubocop" step "Security: Gem audit", "bin/bundler-audit" step "Security: Importmap vulnerability audit", "bin/importmap audit" step "Security: Brakeman code analysis", "bin/brakeman --quiet --no-pager --exit-on-wa...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/application.rb
rails-app-with-knapsack_pro/config/application.rb
require_relative "boot" require "rails/all" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module RailsAppWithKnapsackPro class Application < Rails::Application # Initialize configuration defaults for originally g...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/environment.rb
rails-app-with-knapsack_pro/config/environment.rb
# Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/puma.rb
rails-app-with-knapsack_pro/config/puma.rb
# This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. # # Puma starts a configurable number of processes (workers) and each process # serve...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/routes.rb
rails-app-with-knapsack_pro/config/routes.rb
Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html resources :articles resources :calculator, only: [:index, :create] root 'welcome#index' end
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/importmap.rb
rails-app-with-knapsack_pro/config/importmap.rb
# Pin npm packages by running ./bin/importmap pin "application" pin "@hotwired/turbo-rails", to: "turbo.min.js" pin "@hotwired/stimulus", to: "stimulus.min.js" pin "@hotwired/stimulus-loading", to: "stimulus-loading.js" pin_all_from "app/javascript/controllers", under: "controllers"
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/boot.rb
rails-app-with-knapsack_pro/config/boot.rb
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. require "bootsnap/setup" # Speed up boot time by caching expensive operations.
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/initializers/content_security_policy.rb
rails-app-with-knapsack_pro/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy. # See the Securing Rails Applications Guide for more information: # https://guides.rubyonrails.org/security.html#content-security-policy-header # Rails.application.configure do # config.content_security...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/initializers/filter_parameter_logging.rb
rails-app-with-knapsack_pro/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. # Use this to limit dissemination of sensitive information. # See the ActiveSupport::ParameterFilter documentation for supported notations and behavio...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/initializers/inflections.rb
rails-app-with-knapsack_pro/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/initializers/assets.rb
rails-app-with-knapsack_pro/config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = "1.0" # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/environments/test.rb
rails-app-with-knapsack_pro/config/environments/test.rb
# The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! Rails.application.configure do # Settings...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/environments/development.rb
rails-app-with-knapsack_pro/config/environments/development.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Make code changes take effect immediately without server restart. config.enable_reloading = true # Do not eager load code on boot. config.eager...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/rails-app-with-knapsack_pro/config/environments/production.rb
rails-app-with-knapsack_pro/config/environments/production.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.enable_reloading = false # Eager load code on boot for better performance and memory savings (ignor...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/spec/knapsack_pro_spec.rb
spec/knapsack_pro_spec.rb
require 'tmpdir' describe KnapsackPro do describe '.root' do subject { described_class.root } it { expect(subject).to match 'knapsack_pro-ruby' } end describe '.logger' do subject { described_class.logger } before(:each) do described_class.reset_logger! KnapsackPro::Config::Env.rem...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/spec/spec_helper.rb
spec/spec_helper.rb
require 'rspec/its' require 'spinach' require 'timecop' Timecop.safe_mode = true require 'vcr' require 'webmock/rspec' VCR.configure do |config| config.cassette_library_dir = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock # or :fakeweb end require 'knapsack_pro' Dir["#{KnapsackPro.root}/spec/{support,f...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false
KnapsackPro/knapsack_pro-ruby
https://github.com/KnapsackPro/knapsack_pro-ruby/blob/04da025adfa702ef7bfcdda588049512550b3127/spec/support/fakes/cucumber.rb
spec/support/fakes/cucumber.rb
module Cucumber # Cucumber 1 and 2 # https://github.com/cucumber/cucumber-ruby/blob/v2.99.0/lib/cucumber/rb_support/rb_dsl.rb module RbSupport class RbDsl class << self def register_rb_hook(phase, tag_names, proc) proc.call end end end end # Cucumber 3 # https:...
ruby
MIT
04da025adfa702ef7bfcdda588049512550b3127
2026-01-04T17:38:43.340996Z
false