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
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/js_error_reporter.rb
spec/support/js_error_reporter.rb
# frozen_string_literal: true class JSErrorReporter def initialize @_ignored_js_errors = [] @source_maps = Hash.new do |hash, key| hash[key] = begin sourcemap_uri = URI.parse(key).tap { |uri| uri.path += ".map" } if sourcemap_uri.path.match?(/\/assets\/application-.*\.js\.map/) ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/product_tiered_pricing_helpers.rb
spec/support/product_tiered_pricing_helpers.rb
# frozen_string_literal: true # Helper methods for tiered membership products with tier-level pricing module ProductTieredPricingHelpers def tier_pricing_values(product) product.tier_category.variants.alive.map(&:reload).map do |tier| json = tier.as_json { name: tier.name, pwyw: json["is_customizable...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/product_want_this_helpers.rb
spec/support/product_want_this_helpers.rb
# frozen_string_literal: true # Helper methods for the "i want this!" container on product and profile pages module ProductWantThisHelpers # in case of a single-tier / single-version-option products, recurrences will be shown as option boxes def select_recurrence_box(recurrence) find(".recurrence-boxes .varian...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/embed_helpers.rb
spec/support/embed_helpers.rb
# frozen_string_literal: true module EmbedHelpers def cleanup_embed_artifacts Dir.glob(Rails.root.join("public", "embed_spec_page_*.html")).each { |f| File.delete(f) } end def create_embed_page(product, template_name: "embed_page.html.erb", url: nil, gumroad_params: nil, outbound: true, insert_anchor_tag: t...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/manage_subscription_helpers.rb
spec/support/manage_subscription_helpers.rb
# frozen_string_literal: true # Helper methods for testing managing subscription functionality module ManageSubscriptionHelpers def shared_setup(originally_subscribed_at: nil, recommendable: false) @email = generate(:email) @user = create(:user, email: @email) @credit_card = create(:credit_card, user: @u...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/stripe_merchant_account_helper.rb
spec/support/stripe_merchant_account_helper.rb
# frozen_string_literal: true module StripeMerchantAccountHelper MAX_ATTEMPTS_TO_WAIT_FOR_CAPABILITIES = 12 # x 10s = 2 mins module_function def create_verified_stripe_account(params = {}) default_params = DefaultAccountParamsBuilderService.new(country: params[:country]).perform stripe_account = Stripe...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/elasticsearch.rb
spec/support/elasticsearch.rb
# frozen_string_literal: true unless ENV["LOG_ES"] == "true" EsClient.transport.logger = Logger.new(File::NULL) end module Elasticsearch::API::Actions alias original_index index def index_and_wait_for_refresh(arguments = {}) arguments[:refresh] = "true" original_index(arguments) end alias original_...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/post_helper.rb
spec/support/post_helper.rb
# frozen_string_literal: true # Helper method to upload post files # Used in posts and workflow specs module PostHelpers def upload_post_file(file_name) attach_post_file file_name wait_for_file_upload_to_finish file_name end def attach_post_file(file_name) page.attach_file(file_fixture(file_name)) d...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/circle_rate_limit_stub.rb
spec/support/circle_rate_limit_stub.rb
# frozen_string_literal: true RSpec.configure do |config| config.around(:each, :without_circle_rate_limit) do |example| RSpec::Mocks.with_temporary_scope do allow_any_instance_of(CircleApi).to receive(:rate_limited_call).and_wrap_original do |_, &blk| blk.call end example.run end ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/puffing_billy.rb
spec/support/puffing_billy.rb
# frozen_string_literal: true # From https://knapsackpro.com/faq/question/how-to-configure-puffing-billy-gem-with-knapsack-pro-queue-mode # A patch to `puffing-billy`'s proxy so that it doesn't try to stop # eventmachine's reactor if it's not running. module BillyProxyPatch def stop return unless EM.reactor_runn...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/rspec_matchers.rb
spec/support/rspec_matchers.rb
# frozen_string_literal: true RSpec::Matchers.define :equal_with_indifferent_access do |expected| match do |actual| actual.with_indifferent_access == expected.with_indifferent_access end failure_message do |actual| <<-EOS expected: #{expected} got: #{actual} EOS end failure_message...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/stripe_retry_helper.rb
spec/support/stripe_retry_helper.rb
# frozen_string_literal: true module StripeRetryHelper MAX_RETRIES = 7 BASE_DELAY = 1.0 class << self def with_retry_on_rate_limit(&block) return yield unless Rails.env.test? return yield if vcr_cassette_active? attempt = 0 begin yield rescue Stripe::InvalidRequestErr...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/error_responses.rb
spec/support/error_responses.rb
# frozen_string_literal: true # Ref: https://eliotsykes.com/2017/03/08/realistic-error-responses/ # Useful for rendering true 404 responses in request specs, for example. module ErrorResponses def respond_without_detailed_exceptions env_config = Rails.application.env_config original_show_exceptions = env_con...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/collab_product_helpers.rb
spec/support/collab_product_helpers.rb
# frozen_string_literal: true # Helper methods for testing collabs product functionality module CollabProductHelper def setup_collab_purchases_for(user) collaborator = create(:collaborator, affiliate_user: user) collab_product = create(:product, :is_collab, user: collaborator.seller, name: "collab product", ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/product_file_list_helpers.rb
spec/support/product_file_list_helpers.rb
# frozen_string_literal: true # Helper methods for the new file list on the product edit page # (do not use when on the product creation step) module ProductFileListHelpers def have_file_row(name:, count: nil) options = { text: name, exact_text: true, count: }.compact have_selector("[aria-label=Files] [role=...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/email_helpers.rb
spec/support/email_helpers.rb
# frozen_string_literal: true module EmailHelpers def upload_attachment(name, wait_until_uploaded: true) attach_file("Attach files", file_fixture(name), visible: false) expect(page).to have_button("Save", disabled: false) if wait_until_uploaded end def find_attachment(name) within "[aria-label='File...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/helperai_spec_helper.rb
spec/support/helperai_spec_helper.rb
# frozen_string_literal: true module HelperAISpecHelper def set_headers(params: nil, json: nil) hmac = Helper::Client.new.create_hmac_digest(params:, json:) hmac_base64 = Base64.encode64(hmac) request.headers["Authorization"] = "Bearer #{hmac_base64}" request.headers["Content-Type"] = "application/js...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/stripe_payment_method_helper.rb
spec/support/stripe_payment_method_helper.rb
# frozen_string_literal: true module StripePaymentMethodHelper EXPIRY_MM = "12" EXPIRY_YYYY = Time.current.strftime("%Y") EXPIRY_YY = Time.current.strftime("%y") EXPIRY_MMYY = "#{EXPIRY_MM}/#{EXPIRY_YY}" module ExtensionMethods def to_stripe_card_hash { token: self[:token] } end def to_st...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/profile_helper.rb
spec/support/profile_helper.rb
# frozen_string_literal: true # Helper method to complete user profile fields # Used in auth specs where dashboard and logout option are visible only after profile is filled in module FillInUserProfileHelpers def fill_in_profile visit settings_profile_path fill_in("Username", with: "gumbo") fill_in("Nam...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/product_card_helpers.rb
spec/support/product_card_helpers.rb
# frozen_string_literal: true module ProductCardHelpers def find_product_card(product) page.find("article", text: product.name) end def expect_product_cards_in_order(products) expect(page).to have_product_card(count: products.length) products.each_with_index { |product, index| expect(page).to have_s...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/antigua_and_barbuda_bank_accounts.rb
spec/support/factories/antigua_and_barbuda_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :antigua_and_barbuda_bank_account do user account_number { "000123456789" } account_number_last_four { "6789" } bank_code { "AAAAAGAGXYZ" } account_holder_full_name { "Antigua and Barbuda Creator I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/call_availabilities.rb
spec/support/factories/call_availabilities.rb
# frozen_string_literal: true FactoryBot.define do factory :call_availability do start_time { 1.day.ago } end_time { 1.year.from_now } after(:build) do |call_availability| call_availability.call ||= build(:call_product, call_availabilities: [call_availability]) end end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/new_zealand_bank_accounts.rb
spec/support/factories/new_zealand_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :new_zealand_bank_account do user account_number { "1100000000000010" } account_number_last_four { "0010" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/seller_profile_featured_product_sections.rb
spec/support/factories/seller_profile_featured_product_sections.rb
# frozen_string_literal: true FactoryBot.define do factory :seller_profile_featured_product_section do seller { create(:user) } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/seller_profile_posts_sections.rb
spec/support/factories/seller_profile_posts_sections.rb
# frozen_string_literal: true FactoryBot.define do factory :seller_profile_posts_section do seller { create(:user) } shown_posts { [] } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/tunisia_bank_accounts.rb
spec/support/factories/tunisia_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :tunisia_bank_account do user account_number { "TN5904018104004942712345" } account_number_last_four { "2345" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/kazakhstan_bank_accounts.rb
spec/support/factories/kazakhstan_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :kazakhstan_bank_account do user account_number { "KZ221251234567890123" } account_number_last_four { "0123" } bank_code { "AAAAKZKZXXX" } account_holder_full_name { "Kaz creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/events.rb
spec/support/factories/events.rb
# frozen_string_literal: true FactoryBot.define do factory :event do from_profile { false } ip_country { "United States" } ip_state { "CA" } after(:build) do |event| event.referrer_domain = Referrer.extract_domain(event.referrer) if event.referrer.present? event.referrer_domain = REFERRE...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/self_service_affiliate_product.rb
spec/support/factories/self_service_affiliate_product.rb
# frozen_string_literal: true FactoryBot.define do factory :self_service_affiliate_product do association :seller, factory: :user product { create(:product, user: seller) } affiliate_basis_points { 500 } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/senegal_bank_accounts.rb
spec/support/factories/senegal_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :senegal_bank_account do user account_number { "SN08SN0100152000048500003035" } account_number_last_four { "3035" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/calls.rb
spec/support/factories/calls.rb
# frozen_string_literal: true FactoryBot.define do factory :call do start_time { 1.day.from_now } end_time { 1.day.from_now + 30.minutes } call_url { "https://zoom.us/j/gmrd" } transient do link { nil } end after(:build) do |call, evaluator| purchase_params = { call:, link: eval...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/payments.rb
spec/support/factories/payments.rb
# frozen_string_literal: true FactoryBot.define do factory :payment do user state { "processing" } processor { PayoutProcessorType::PAYPAL } correlation_id { "12345" } amount_cents { 150 } payout_period_end_date { Date.yesterday } end factory :payment_unclaimed, parent: :payment do s...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/users.rb
spec/support/factories/users.rb
# frozen_string_literal: true FactoryBot.define do factory :user do email { generate :email } username { generate :username } password { "-42Q_.c_3628Ca!mW-xTJ8v*" } confirmed_at { Time.current } user_risk_state { "not_reviewed" } payment_address { generate :email } current_sign_in_ip { ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/preorder_links.rb
spec/support/factories/preorder_links.rb
# frozen_string_literal: true FactoryBot.define do factory :preorder_link do association :link, factory: :product release_at { 2.months.from_now } factory :preorder_product_with_content do url { "#{AWS_S3_ENDPOINT}/#{S3_BUCKET}/specs/magic.mp3" } end end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/purchase_refund_policies.rb
spec/support/factories/purchase_refund_policies.rb
# frozen_string_literal: true FactoryBot.define do factory :purchase_refund_policy do purchase title { "30-day money back guarantee" } fine_print { "This is a purchase-level refund policy" } max_refund_period_in_days { 30 } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/balances.rb
spec/support/factories/balances.rb
# frozen_string_literal: true FactoryBot.define do factory :balance do user merchant_account { MerchantAccount.gumroad(StripeChargeProcessor.charge_processor_id) } date { Date.today } currency { Currency::USD } amount_cents { 10_00 } holding_currency { currency } holding_amount_cents { am...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/customer_email_infos.rb
spec/support/factories/customer_email_infos.rb
# frozen_string_literal: true FactoryBot.define do factory :customer_email_info do purchase email_name { "receipt" } state { "created" } factory :customer_email_info_sent do state { "sent" } sent_at { Time.current } factory :customer_email_info_delivered do state { "delive...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/card_bank_accounts.rb
spec/support/factories/card_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :card_bank_account do user credit_card { create(:credit_card, chargeable: create(:cc_token_chargeable, card: CardParamsSpecHelper.success_debit_visa)) } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/egypt_bank_accounts.rb
spec/support/factories/egypt_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :egypt_bank_account do user account_number { "EG800002000156789012345180002" } account_number_last_four { "1111" } bank_code { "NBEGEGCX331" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/malaysia_bank_accounts.rb
spec/support/factories/malaysia_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :malaysia_bank_account do user account_number { "000123456000" } account_number_last_four { "6000" } bank_code { "HBMBMYKL" } account_holder_full_name { "Malaysian Creator I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/saudi_arabia_bank_accounts.rb
spec/support/factories/saudi_arabia_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :saudi_arabia_bank_account do user account_number { "SA4420000001234567891234" } account_number_last_four { "1234" } bank_code { "RIBLSARIXXX" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/circle_integrations.rb
spec/support/factories/circle_integrations.rb
# frozen_string_literal: true FactoryBot.define do factory :circle_integration do api_key { GlobalConfig.get("CIRCLE_API_KEY") } community_id { "3512" } space_group_id { "43576" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/shipments.rb
spec/support/factories/shipments.rb
# frozen_string_literal: true FactoryBot.define do factory :shipment do purchase end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/vietnam_bank_accounts.rb
spec/support/factories/vietnam_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :vietnam_bank_account do user account_number { "000123456789" } account_number_last_four { "6789" } bank_code { "01101100" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/zoom_integrations.rb
spec/support/factories/zoom_integrations.rb
# frozen_string_literal: true FactoryBot.define do factory :zoom_integration do user_id { "0" } email { "test@zoom.com" } access_token { "test_access_token" } refresh_token { "test_refresh_token" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/product_reviews.rb
spec/support/factories/product_reviews.rb
# frozen_string_literal: true FactoryBot.define do factory :product_review do purchase link { purchase.try(:link) } rating { 1 } message { Faker::Lorem.paragraph } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/post_email_blasts.rb
spec/support/factories/post_email_blasts.rb
# frozen_string_literal: true FactoryBot.define do factory :post_email_blast, aliases: [:blast] do post seller { post.seller } requested_at { 30.minutes.ago } started_at { 25.minutes.ago } first_email_delivered_at { 20.minutes.ago } last_email_delivered_at { 10.minutes.ago } delivery_coun...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/traits.rb
spec/support/factories/traits.rb
# frozen_string_literal: true FactoryBot.define do trait :fixed_timestamps do created_at { generate(:fixed_timestamp) } updated_at { generate(:fixed_timestamp) } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/saint_lucia_bank_accounts.rb
spec/support/factories/saint_lucia_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :saint_lucia_bank_account do user account_number { "000123456789" } account_number_last_four { "6789" } bank_code { "AAAALCLCXYZ" } account_holder_full_name { "Saint Lucia Creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/product_taggings.rb
spec/support/factories/product_taggings.rb
# frozen_string_literal: true FactoryBot.define do factory :product_tagging do product { create(:product) } tag end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/seller_profile_wishlists_sections.rb
spec/support/factories/seller_profile_wishlists_sections.rb
# frozen_string_literal: true FactoryBot.define do factory :seller_profile_wishlists_section do seller { create(:user) } shown_wishlists { [] } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/swiss_bank_accounts.rb
spec/support/factories/swiss_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :swiss_bank_account do user account_number { "CH9300762011623852957" } account_number_last_four { "3000" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/media_locations.rb
spec/support/factories/media_locations.rb
# frozen_string_literal: true FactoryBot.define do factory :media_location do product_id { create(:product).id } product_file_id { create(:product_file, url: "#{AWS_S3_ENDPOINT}/#{S3_BUCKET}/specs/billion-dollar-company-chapter-0.pdf").id } url_redirect_id { create(:url_redirect).id } purchase_id { c...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/carts.rb
spec/support/factories/carts.rb
# frozen_string_literal: true FactoryBot.define do factory :cart do association :user, factory: :user browser_guid { SecureRandom.uuid } ip_address { Faker::Internet.ip_v4_address } trait :guest do user { nil } end end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/team_invitations.rb
spec/support/factories/team_invitations.rb
# frozen_string_literal: true FactoryBot.define do factory :team_invitation do association :seller, factory: :user email { generate(:fixed_email) } expires_at { TeamInvitation::ACTIVE_INTERVAL_IN_DAYS.days.from_now } role { TeamMembership::ROLE_ADMIN } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/monaco_bank_accounts.rb
spec/support/factories/monaco_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :monaco_bank_account do user account_number { "MC5810096180790123456789085" } account_number_last_four { "9085" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/singaporean_bank_accounts.rb
spec/support/factories/singaporean_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :singaporean_bank_account do user account_number { "000123456" } branch_code { "000" } bank_number { "1100" } account_number_last_four { "3456" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/taxonomies.rb
spec/support/factories/taxonomies.rb
# frozen_string_literal: true FactoryBot.define do factory :taxonomy do sequence :slug do |n| "taxonomy-#{n}" end end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/product_review_stats.rb
spec/support/factories/product_review_stats.rb
# frozen_string_literal: true FactoryBot.define do factory :product_review_stat do association :link, factory: :product end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/prices.rb
spec/support/factories/prices.rb
# frozen_string_literal: true FactoryBot.define do factory :price do association :link, factory: :product price_cents { 100 } currency { "usd" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/gumroad_daily_analytics.rb
spec/support/factories/gumroad_daily_analytics.rb
# frozen_string_literal: true FactoryBot.define do factory :gumroad_daily_analytic do period_ended_at { "2023-02-03 17:07:30" } gumroad_price_cents { 1500 } gumroad_fee_cents { 150 } creators_with_sales { 45 } gumroad_discover_price_cents { 700 } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/bundle_product_purchases.rb
spec/support/factories/bundle_product_purchases.rb
# frozen_string_literal: true FactoryBot.define do factory :bundle_product_purchase do bundle_purchase { create(:purchase) } product_purchase { create(:purchase, link: create(:product, user: bundle_purchase.seller), seller: bundle_purchase.seller) } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/collaborators.rb
spec/support/factories/collaborators.rb
# frozen_string_literal: true FactoryBot.define do factory :collaborator do association :affiliate_user, factory: :affiliate_user association :seller, factory: :user apply_to_all_products { true } affiliate_basis_points { 30_00 } trait :with_pending_invitation do collaborator_invitation { ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/thailand_bank_accounts.rb
spec/support/factories/thailand_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :thailand_bank_account do user account_number { "000123456789" } bank_number { "999" } account_number_last_four { "6789" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/seller_profiles.rb
spec/support/factories/seller_profiles.rb
# frozen_string_literal: true FactoryBot.define do factory :seller_profile do seller { create(:user) } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/upsells.rb
spec/support/factories/upsells.rb
# frozen_string_literal: true FactoryBot.define do factory :upsell do name { "Upsell" } seller { create(:user) } product { create(:product, user: seller) } text { "Take advantage of this excellent offer!" } description { "This offer will only last for a few weeks." } cross_sell { false } en...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/poland_bank_accounts.rb
spec/support/factories/poland_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :poland_bank_account do user account_number { "PL61109010140000071219812874" } account_number_last_four { "2874" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/gifts.rb
spec/support/factories/gifts.rb
# frozen_string_literal: true FactoryBot.define do factory :gift do association :link, factory: :product gifter_email { generate :email } giftee_email { generate :email } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/charges.rb
spec/support/factories/charges.rb
# frozen_string_literal: true FactoryBot.define do factory :charge do order { create(:order) } seller { create(:user) } processor { "stripe" } processor_transaction_id { "ch_#{SecureRandom.hex}" } payment_method_fingerprint { "pm_#{SecureRandom.hex}" } merchant_account { create(:merchant_acco...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/processor_payment_intents.rb
spec/support/factories/processor_payment_intents.rb
# frozen_string_literal: true FactoryBot.define do factory :processor_payment_intent do purchase intent_id { SecureRandom.uuid } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/albania_bank_accounts.rb
spec/support/factories/albania_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :albania_bank_account do user account_number { "AL35202111090000000001234567" } account_number_last_four { "4567" } bank_code { "AAAAALTXXXX" } account_holder_full_name { "Albanian Creator I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/black_recurring_services.rb
spec/support/factories/black_recurring_services.rb
# frozen_string_literal: true FactoryBot.define do factory :black_recurring_service do user state { "active" } price_cents { 10_00 } recurrence { :monthly } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/discord_integrations.rb
spec/support/factories/discord_integrations.rb
# frozen_string_literal: true FactoryBot.define do factory :discord_integration do server_id { "0" } server_name { "Gaming" } username { "gumbot" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/seller_profile_products_sections.rb
spec/support/factories/seller_profile_products_sections.rb
# frozen_string_literal: true FactoryBot.define do factory :seller_profile_products_section do seller { create(:user) } default_product_sort { "page_layout" } shown_products { [] } show_filters { false } add_new_products { true } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/user_compliance_infos.rb
spec/support/factories/user_compliance_infos.rb
# frozen_string_literal: true FactoryBot.define do factory :user_compliance_info_empty, class: UserComplianceInfo do user end factory :user_compliance_info, parent: :user_compliance_info_empty do first_name { "Chuck" } last_name { "Bartowski" } street_address { "address_full_match" } city { ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/australia_backtax_email_infos.rb
spec/support/factories/australia_backtax_email_infos.rb
# frozen_string_literal: true FactoryBot.define do factory :australia_backtax_email_info do user email_name { "email_for_taxes_owed" } sent_at { Time.current } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/mozambique_bank_accounts.rb
spec/support/factories/mozambique_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :mozambique_bank_account do user account_number { "001234567890123456789" } account_number_last_four { "6789" } bank_code { "AAAAMZMXXXX" } account_holder_full_name { "Mozambique Creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/sweden_bank_accounts.rb
spec/support/factories/sweden_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :sweden_bank_account do user account_number { "SE3550000000054910000003" } account_number_last_four { "0003" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/admin_action_call_infos.rb
spec/support/factories/admin_action_call_infos.rb
# frozen_string_literal: true FactoryBot.define do factory :admin_action_call_info do controller_name { "Admin::UsersController" } action_name { "show" } call_count { 0 } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/product_files_archives.rb
spec/support/factories/product_files_archives.rb
# frozen_string_literal: true FactoryBot.define do factory :product_files_archive do association :link, factory: :product after(:create) do |pfa| pfa.set_url_if_not_present pfa.save! end end factory :product_files_archive_without_url, class: ProductFilesArchive do association :link, ...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/subtitle_files.rb
spec/support/factories/subtitle_files.rb
# frozen_string_literal: true FactoryBot.define do factory :subtitle_file do product_file url { "#{AWS_S3_ENDPOINT}/#{S3_BUCKET}/#{SecureRandom.hex}.srt" } language { "English" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/preorders.rb
spec/support/factories/preorders.rb
# frozen_string_literal: true FactoryBot.define do factory :preorder do preorder_link seller { preorder_link.link.user } state { "in_progress" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/japan_bank_accounts.rb
spec/support/factories/japan_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :japan_bank_account do user account_number { "0001234" } account_number_last_four { "1234" } bank_code { "1100" } branch_code { "000" } account_holder_full_name { "Japanese Creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/taiwan_bank_accounts.rb
spec/support/factories/taiwan_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :taiwan_bank_account do user account_number { "0001234567" } account_number_last_four { "4567" } bank_code { "AAAATWTXXXX" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/iceland_bank_accounts.rb
spec/support/factories/iceland_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :iceland_bank_account do user account_number { "IS140159260076545510730339" } account_number_last_four { "0339" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/invites.rb
spec/support/factories/invites.rb
# frozen_string_literal: true FactoryBot.define do factory :invite do user receiver_email { generate :email } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/orders.rb
spec/support/factories/orders.rb
# frozen_string_literal: true FactoryBot.define do factory :order, class: Order do association :purchaser, factory: :user end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/charge_events.rb
spec/support/factories/charge_events.rb
# frozen_string_literal: true FactoryBot.define do factory :charge_event, class: ChargeEvent do skip_create # ChargeEvent is not an ActiveRecord object; does not define "save!" charge_id { "charge-#{Random.rand}" } created_at { DateTime.current } comment { "charge succeeded" } type { ChargeEvent...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/hungary_bank_accounts.rb
spec/support/factories/hungary_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :hungary_bank_account do user account_number { "HU42117730161111101800000000" } account_number_last_four { "2874" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/wishlist_followers.rb
spec/support/factories/wishlist_followers.rb
# frozen_string_literal: true FactoryBot.define do factory :wishlist_follower do wishlist association :follower_user, factory: :user end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/installment_rules.rb
spec/support/factories/installment_rules.rb
# frozen_string_literal: true FactoryBot.define do factory :installment_rule, aliases: [:post_rule] do installment to_be_published_at { 1.week.from_now } time_period { "hour" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/purchase_custom_fields.rb
spec/support/factories/purchase_custom_fields.rb
# frozen_string_literal: true FactoryBot.define do factory :purchase_custom_field do purchase field_type { CustomField::TYPE_TEXT } name { "Custom field" } value { "custom field value" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/ghana_bank_accounts.rb
spec/support/factories/ghana_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :ghana_bank_account do user account_number { "000123456789" } account_number_last_four { "6789" } bank_code { "022112" } account_holder_full_name { "Ghanaian Creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/trinidad_and_tobago_bank_accounts.rb
spec/support/factories/trinidad_and_tobago_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :trinidad_and_tobago_bank_account do user account_number { "00567890123456789" } bank_number { "999" } branch_code { "00001" } account_number_last_four { "6789" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/direct_affiliates.rb
spec/support/factories/direct_affiliates.rb
# frozen_string_literal: true FactoryBot.define do factory :direct_affiliate do association :affiliate_user, factory: :affiliate_user association :seller, factory: :user affiliate_basis_points { 300 } send_posts { true } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/liechtenstein_bank_accounts.rb
spec/support/factories/liechtenstein_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :liechtenstein_bank_account do user account_number { "LI0508800636123378777" } account_number_last_four { "8777" } account_holder_full_name { "Liechtenstein Creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/taxonomy_stats.rb
spec/support/factories/taxonomy_stats.rb
# frozen_string_literal: true FactoryBot.define do factory :taxonomy_stat do taxonomy end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/san_marino_bank_accounts.rb
spec/support/factories/san_marino_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :san_marino_bank_account do user account_number { "SM86U0322509800000000270100" } account_number_last_four { "0100" } bank_code { "AAAASMSMXXX" } account_holder_full_name { "San Marino Creator" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/wishlist_products.rb
spec/support/factories/wishlist_products.rb
# frozen_string_literal: true FactoryBot.define do factory :wishlist_product do wishlist product trait :with_quantity do product { create(:physical_product) } quantity { 5 } end trait :with_recurring_variant do product { create(:membership_product_with_preset_tiered_pricing) }...
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false
antiwork/gumroad
https://github.com/antiwork/gumroad/blob/638f6c3a40b23b907c09f6881d4df18339da069c/spec/support/factories/kenya_bank_accounts.rb
spec/support/factories/kenya_bank_accounts.rb
# frozen_string_literal: true FactoryBot.define do factory :kenya_bank_account do user account_number { "000123456789" } account_number_last_four { "6789" } bank_code { "BARCKENXMDR" } account_holder_full_name { "Gumbot Gumstein I" } end end
ruby
MIT
638f6c3a40b23b907c09f6881d4df18339da069c
2026-01-04T15:39:11.815677Z
false