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
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20161001090839_create_flags.rb
db/migrate/20161001090839_create_flags.rb
class CreateFlags < ActiveRecord::Migration def change create_table :flags do |t| t.integer :post_id t.integer :generated_topic_id t.text :reason t.timestamps null: false end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20160222043130_add_lang_to_topics.rb
db/migrate/20160222043130_add_lang_to_topics.rb
class AddLangToTopics < ActiveRecord::Migration def change add_column :topics, :locale, :string#, default: 'en' end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20160310044144_add_doc_id_to_topic.rb
db/migrate/20160310044144_add_doc_id_to_topic.rb
class AddDocIdToTopic < ActiveRecord::Migration def up add_column :topics, :doc_id, :integer, default: 0 add_column :docs, :topics_count, :integer, default: 0 add_column :docs, :allow_comments, :boolean, default: true end def down remove_column :topics, :doc_id remove_column :docs, :topics_c...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20170120154323_add_to_users.rb
db/migrate/20170120154323_add_to_users.rb
class AddToUsers < ActiveRecord::Migration def change add_column :users, :priority, :string, default: 'normal' add_index :users, :priority end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20150414210945_create_versions.rb
db/migrate/20150414210945_create_versions.rb
class CreateVersions < ActiveRecord::Migration def change create_table :versions do |t| t.string :item_type, :null => false t.integer :item_id, :null => false t.string :event, :null => false t.string :whodunnit t.text :object t.datetime :created_at end ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20190513145733_add_spam_score_to_topics.rb
db/migrate/20190513145733_add_spam_score_to_topics.rb
class AddSpamScoreToTopics < ActiveRecord::Migration def change add_column :topics, :spam_score, :decimal, default: 0.0 add_column :topics, :spam_report, :text, default: "" end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20150320203432_create_pg_search_documents.rb
db/migrate/20150320203432_create_pg_search_documents.rb
class CreatePgSearchDocuments < ActiveRecord::Migration def self.up say_with_time("Creating table for pg_search multisearch") do create_table :pg_search_documents do |t| t.text :content t.belongs_to :searchable, :polymorphic => true t.timestamps null: false end end end ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20161011213000_add_attachments.rb
db/migrate/20161011213000_add_attachments.rb
class AddAttachments < ActiveRecord::Migration def change add_column :posts, :attachments, :string, array: true, default: [] add_column :docs, :attachments, :string, array: true, default: [] add_column :users, :profile_image, :string end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20161017170305_create_images.rb
db/migrate/20161017170305_create_images.rb
class CreateImages < ActiveRecord::Migration def change create_table :images do |t| t.string :key t.string :name t.string :extension t.text :file t.timestamps null: false end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20150726192908_create_attachinary_tables.attachinary.rb
db/migrate/20150726192908_create_attachinary_tables.attachinary.rb
# This migration comes from attachinary (originally 20120612112526) class CreateAttachinaryTables < ActiveRecord::Migration def change create_table :attachinary_files do |t| t.references :attachinariable, polymorphic: true t.string :scope t.string :public_id t.string :version t.inte...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20150722031136_add_voting_toggles_to_forums.rb
db/migrate/20150722031136_add_voting_toggles_to_forums.rb
class AddVotingTogglesToForums < ActiveRecord::Migration def change add_column :posts, :points, :integer, default: 0 add_column :forums, :allow_topic_voting, :boolean, default: false add_column :forums, :allow_post_voting, :boolean, default: false add_column :forums, :layout, :string, default: 'table'...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20150313180829_create_posts.rb
db/migrate/20150313180829_create_posts.rb
class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| t.integer :topic_id t.integer :user_id t.text :body t.string :kind #reply or first, note t.boolean :active, :default => true t.timestamps null: false end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20161030210752_add_raw_to_posts.rb
db/migrate/20161030210752_add_raw_to_posts.rb
class AddRawToPosts < ActiveRecord::Migration def change add_column :posts, :raw_email, :text end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20170121155626_add_columns_to_tag.rb
db/migrate/20170121155626_add_columns_to_tag.rb
class AddColumnsToTag < ActiveRecord::Migration def change add_column :tags, :show_on_helpcenter, :boolean, :default => false add_column :tags, :show_on_admin, :boolean, :default => false add_column :tags, :show_on_dashboard, :boolean, :default => false end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20160709052116_add_column_invitation_message_to_users.rb
db/migrate/20160709052116_add_column_invitation_message_to_users.rb
class AddColumnInvitationMessageToUsers < ActiveRecord::Migration def change add_column :users, :invitation_message, :text end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20151107185413_add_locale_to_versions.rb
db/migrate/20151107185413_add_locale_to_versions.rb
class AddLocaleToVersions < ActiveRecord::Migration def change add_column :versions, :locale, :string end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20190716202013_add_status_to_user.rb
db/migrate/20190716202013_add_status_to_user.rb
class AddStatusToUser < ActiveRecord::Migration def change add_column :users, :status, :string, default: 'available' end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20150314002614_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
db/migrate/20150314002614_change_collation_for_tag_names.acts_as_taggable_on_engine.rb
# This migration comes from acts_as_taggable_on_engine (originally 5) # This migration is added to circumvent issue #623 and have special characters # work properly class ChangeCollationForTagNames < ActiveRecord::Migration def up if ActsAsTaggableOn::Utils.using_mysql? execute("ALTER TABLE tags MODIFY name...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20171002125050_add_priority_to_topics.rb
db/migrate/20171002125050_add_priority_to_topics.rb
class AddPriorityToTopics < ActiveRecord::Migration def change add_column :topics, :priority, :integer, default: 1 add_index :topics, :priority end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/db/migrate/20160518134813_convert_admin_to_admin.rb
db/migrate/20160518134813_convert_admin_to_admin.rb
class ConvertAdminToAdmin < ActiveRecord::Migration def change # Iterate through users and give them an admin role if they have the flag User.admins.each do |admin| admin.update_attribute(:role, 'admin') if admin.admin? end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration_test_helper.rb
test/integration_test_helper.rb
require 'test_helper' require "capybara/rails" class ActionDispatch::IntegrationTest # Make the Capybara DSL available in all integration tests include Capybara::DSL def sign_in(email='scott.miller@test.com') visit "/en/users/sign_in" within first('div.login-form') do fill_in("user[email]", with: ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/test_helper.rb
test/test_helper.rb
# Simplecov to give a report of the test coverage on local development environment require 'simplecov' SimpleCov.start 'rails' require 'minitest/reporters' Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(:color => true)] ActiveSupport::TestCase.test_order = :parallel require 'capybara/rails' require...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/jobs/import_job_test.rb
test/jobs/import_job_test.rb
require 'test_helper' class ImportJobTest < ActiveSupport::TestCase #user import test "it should import all new records from valid csv" do admin = FactoryBot.create(:admin) files_detail = {} file = File.join(Rails.root, 'test', 'fixtures', 'files', 'user_import.csv') files_detail[:user] = {path: file,...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/jobs/empty_trash_job_test.rb
test/jobs/empty_trash_job_test.rb
require 'test_helper' class EmptyTrashJobTest < ActiveJob::TestCase test 'it should delete all tickets in the trash' do Topic.update_all(current_status: 'deleting') assert_enqueued_jobs Topic.all.count do EmptyTrashJob.perform_now end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/jobs/delete_user_job_job_test.rb
test/jobs/delete_user_job_job_test.rb
require 'test_helper' class DeleteUserJobTest < ActiveJob::TestCase test "all user articles should be deleted" do u = User.find(9) # calculate the total posts to be removed by adding all posts from threads created # by the user plus any other individual posts users_topics = u.topics.collect{|t| t.po...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/jobs/delete_topic_job_test.rb
test/jobs/delete_topic_job_test.rb
require 'test_helper' class DeleteTopicJobTest < ActiveJob::TestCase test "it should delete a topic and all posts" do topic = Topic.find(1) assert_difference 'Post.all.count', -3 do assert_difference 'Topic.all.count', -1 do DeleteTopicJob.perform_now(topic.id) end end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/jobs/rebuild_search_job_test.rb
test/jobs/rebuild_search_job_test.rb
require 'test_helper' class RebuildSearchJobTest < ActiveJob::TestCase # test "the truth" do # assert true # end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/jobs/tracker_job_test.rb
test/jobs/tracker_job_test.rb
require 'test_helper' class TrackerJobTest < ActiveJob::TestCase # test "the truth" do # assert true # end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/admin_settings_flows_test.rb
test/integration/admin_settings_flows_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class AdminSettingsFlowsTest < ActionDispatch::IntegrationTest def setup Warden.test_mode! set_default_settings sign_in('admin@test.com') sleep(2) end def teardown Capybara.reset_sessions! Warden.test_reset! end test '...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/search_flows_test.rb
test/integration/search_flows_test.rb
require 'integration_test_helper' class SearchFlowsTest < ActionDispatch::IntegrationTest def setup # Build PG search PgSearch::Multisearch.rebuild(Doc) PgSearch::Multisearch.rebuild(Topic) set_default_settings end def teardown end test "a browsing user should be able to search from the h...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/sign_in_flow_test.rb
test/integration/sign_in_flow_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class SignInFlowTest < ActionDispatch::IntegrationTest setup do Warden.test_mode! set_default_settings OmniAuth.config.test_mode = true end teardown do OmniAuth.config.test_mode = false Capybara.reset_sessions! Warden.test_...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/reset_password_test.rb
test/integration/reset_password_test.rb
require 'integration_test_helper' include Warden::Test::Helpers include Capybara::Email::DSL class ResetPasswordTest < ActionDispatch::IntegrationTest setup do clear_emails Warden.test_mode! set_default_settings OmniAuth.config.test_mode = true @user = User.find(9) end teardown do OmniA...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/browsing_user_doc_flows_test.rb
test/integration/browsing_user_doc_flows_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class BrowsingUserDocFlowsTest < ActionDispatch::IntegrationTest def setup Warden.test_mode! logout(:user) set_default_settings end def teardown Capybara.reset_sessions! Warden.test_reset! end test "when a doc allows comm...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/change_author_for_ticket_test.rb
test/integration/change_author_for_ticket_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class ChangeAuthorForTicketTest < ActionDispatch::IntegrationTest def setup Capybara.current_driver = :chrome Warden.test_mode! set_default_settings sign_in('admin@test.com') end def teardown Capybara.reset_sessions! Warden...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/signed_in_user_doc_flows_test.rb
test/integration/signed_in_user_doc_flows_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class SignedInUserDocFlowsTest < ActionDispatch::IntegrationTest def setup Warden.test_mode! set_default_settings sign_in end def teardown Capybara.reset_sessions! Warden.test_reset! end test "when a doc allows commentin...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/browsing_user_ticket_flows_test.rb
test/integration/browsing_user_ticket_flows_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class BrowsingUserTicketFlowsTest < ActionDispatch::IntegrationTest def setup Capybara.current_driver = :chrome Warden.test_mode! logout(:user) set_default_settings end def teardown Capybara.reset_sessions! Warden.test_res...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/signed_in_user_ticket_flows_test.rb
test/integration/signed_in_user_ticket_flows_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class SignedInUserTicketFlowsTest < ActionDispatch::IntegrationTest def setup Warden.test_mode! set_default_settings end def teardown Capybara.reset_sessions! Warden.test_reset! end test "a signed in user should be able to cr...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/feature_disable_test.rb
test/integration/feature_disable_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class FeatureDisableTest < ActionDispatch::IntegrationTest def setup Warden.test_mode! set_default_settings sign_in('system@test.com') end def teardown Capybara.reset_sessions! Warden.test_reset! end test 'the page will re...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/client_side_validation_for_group_new_form_test.rb
test/integration/client_side_validation_for_group_new_form_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class ClientSideValidationForGroupNewFormTest < ActionDispatch::IntegrationTest def setup Capybara.current_driver = :chrome Warden.test_mode! set_default_settings sign_in('admin@test.com') end def teardown Capybara.reset_sessio...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/integration/forum_voting_test.rb
test/integration/forum_voting_test.rb
require 'integration_test_helper' include Warden::Test::Helpers class SignedInUserTicketFlowsTest < ActionDispatch::IntegrationTest def setup Warden.test_mode! set_default_settings end def teardown Capybara.reset_sessions! Warden.test_reset! end test "a logged in user should be able to vo...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/users.rb
test/factories/users.rb
FactoryBot.define do factory :user do sequence(:email) { |n| "person#{n}@example.com" } sequence(:password) { |n| "person@{n}" } name { "John" } role { 'agent' } team_list { 'something' } end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/posts.rb
test/factories/posts.rb
FactoryBot.define do factory :post do body { "this is a reply" } kind { "first" } user topic end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/docs.rb
test/factories/docs.rb
FactoryBot.define do factory :doc do title { "something in lowercase" } body { 'test test test' } category end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/topics.rb
test/factories/topics.rb
FactoryBot.define do factory :topic do sequence(:name) { |n| "something in lowercase #{n}" } forum user current_status { 'new' } team_list { 'something' } end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/factories.rb
test/factories/factories.rb
FactoryBot.define do factory :email_from_unknown, class: OpenStruct do to { [{ full: 'to_user@email.com', email: 'to_user@email.com', token: 'to_user', host: 'email.com', name: nil }] } from { ({ token: 'from_user', host: 'email.com', email: 'from_email@email.com', full: 'From User <from_user@email.com>', na...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/forums.rb
test/factories/forums.rb
FactoryBot.define do factory :forum do name { "something in lowercase" } description { 'test test test' } end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/categories.rb
test/factories/categories.rb
FactoryBot.define do factory :category do name { "something in lowercase" } end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/factories/api_keys.rb
test/factories/api_keys.rb
FactoryBot.define do factory :api_key do name { "MyApiKey" } trait :expired do date_expired { 1.month.ago } end end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/onboarding_controller_test.rb
test/controllers/onboarding_controller_test.rb
require 'test_helper' class OnboardingControllerTest < ActionController::TestCase setup do set_default_settings AppSettings['onboarding.complete'] = '0' end # Admin tests test "a new admin should be able to view the onboarding process" do get :index, locale: :en assert_response :success end...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/categories_controller_test.rb
test/controllers/categories_controller_test.rb
# == Schema Information # # Table name: categories # # id :integer not null, primary key # name :string # icon :string # keywords :string # title_tag :string # meta_description :string # rank :integer # front_page :boolean ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/comments_controller_test.rb
test/controllers/comments_controller_test.rb
require 'test_helper' class CommentsControllerTest < ActionController::TestCase setup do set_default_settings sign_in users(:user) end # # A user who is signed in should be able to add a new comment and attach a file test 'a signed in user should be able to add a new comment and attach a file' do ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/posts_controller_test.rb
test/controllers/posts_controller_test.rb
# == Schema Information # # Table name: posts # # id :integer not null, primary key # topic_id :integer # user_id :integer # body :text # kind :string # active :boolean default(TRUE) # created_at :datetime not null # updated_at :datetime not...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/registrations_controller_test.rb
test/controllers/registrations_controller_test.rb
require 'test_helper' class RegistrationsControllerTest < ActionController::TestCase setup do @request.env["devise.mapping"] = Devise.mappings[:user] set_default_settings end test "a logged in user should be able to edit their user profile" do sign_in users(:user) get :edit, locale: :en as...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/locales_controller_test.rb
test/controllers/locales_controller_test.rb
require 'test_helper' class LocalesControllerTest < ActionController::TestCase setup do set_default_settings end test "a browsing user requesting the root domain should get redirected to the default language" do I18n.default_locale = :en I18n.available_locales = ["en"] get :redirect_on_locale ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/home_controller_test.rb
test/controllers/home_controller_test.rb
require 'test_helper' class HomeControllerTest < ActionController::TestCase setup do set_default_settings end test "a browsing user in the default locale should be able to load home page" do get :index, locale: :en assert_response :success end test "a browsing user in an alternate locale shoul...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/result_controller_test.rb
test/controllers/result_controller_test.rb
require 'test_helper' class ResultControllerTest < ActionController::TestCase def setup # Build PG search PgSearch::Multisearch.rebuild(Doc) PgSearch::Multisearch.rebuild(Topic) set_default_settings end test "searching for a doc should return a result" do get(:index, { q: "article1 text", ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin_controller_test.rb
test/controllers/admin_controller_test.rb
# require 'test_helper' # # class AdminControllerTest < ActionController::TestCase # # setup do # # login admin for all tests of admin functions # sign_in users(:admin) # @request.headers['Accepts'] = 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript' # set_def...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/errors_controller_test.rb
test/controllers/errors_controller_test.rb
require 'test_helper' class ErrorsControllerTest < ActionController::TestCase test "should get not_found" do get :not_found assert_response :missing end test "should get internal_server_error" do get :internal_server_error assert_response :error end end
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/flags_controller_test.rb
test/controllers/flags_controller_test.rb
# == Schema Information # # Table name: flags # # id :integer not null, primary key # post_id :integer # generated_topic_id :integer # reason :text # created_at :datetime not null # updated_at :datetime not null # require 'test_helpe...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/users_controller_test.rb
test/controllers/users_controller_test.rb
# == Schema Information # # Table name: users # # id :integer not null, primary key # login :string # identity_url :string # name :string # admin :boolean default(FALSE) # bio :text # signature ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/docs_controller_test.rb
test/controllers/docs_controller_test.rb
# == Schema Information # # Table name: docs # # id :integer not null, primary key # title :string # body :text # keywords :string # title_tag :string # meta_description :string # category_id :integer # user_id :integer # active ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/forums_controller_test.rb
test/controllers/forums_controller_test.rb
# == Schema Information # # Table name: forums # # id :integer not null, primary key # name :string # description :text # topics_count :integer default(0), not null # last_post_date :datetime # last_post_id :integer # private :bool...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/topics_controller_test.rb
test/controllers/topics_controller_test.rb
# == Schema Information # # Table name: topics # # id :integer not null, primary key # forum_id :integer # user_id :integer # user_name :string # name :string # posts_count :integer default(0), not null # waiting_on :string ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/internal_docs_controller_test.rb
test/controllers/admin/internal_docs_controller_test.rb
require_relative '../../test_helper' class Admin::InternalDocsControllerTest < ActionController::TestCase setup do set_default_settings sign_in users(:admin) end test "showing active doc" do get :show, internal_category_id: 1, id: 1 refute_nil assigns(:doc) assert_equal "Article 1", assigns(...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/categories_controller_test.rb
test/controllers/admin/categories_controller_test.rb
# == Schema Information # # Table name: categories # # id :integer not null, primary key # name :string # icon :string # keywords :string # title_tag :string # meta_description :string # rank :integer # front_page :boolean ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/settings_controller_test.rb
test/controllers/admin/settings_controller_test.rb
require 'test_helper' class Admin::SettingsControllerTest < ActionController::TestCase setup do # login admin for all tests of admin functions @request.headers['Accepts'] = 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript' set_default_settings end test 'an ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/posts_controller_test.rb
test/controllers/admin/posts_controller_test.rb
# == Schema Information # # Table name: posts # # id :integer not null, primary key # topic_id :integer # user_id :integer # body :text # kind :string # active :boolean default(TRUE) # created_at :datetime not null # updated_at :datetime not null # ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/tags_controller_test.rb
test/controllers/admin/tags_controller_test.rb
# == Schema Information # # Table name: tags # # id :integer not null, primary key # created_at :datetime not null # updated_at :datetime not null # require 'test_helper' class Admin::TagsControllerTest < ActionController::TestCase setup do set_default_settings end ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/api_keys_controller_test.rb
test/controllers/admin/api_keys_controller_test.rb
# == Schema Information # # Table name: api_keys # # id :integer not null, primary key # access_token :string # user_id :integer # name :string # date_expired :datetime # created_at :datetime not null # updated_at :datetime not null # require 'test_helper' cl...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/images_controller_test.rb
test/controllers/admin/images_controller_test.rb
require 'test_helper' class Admin::ImagesControllerTest < ActionController::TestCase setup do set_default_settings sign_in users(:admin) end test "Should be able to create an image" do assert_difference 'Image.count', +1 do post :create, image: { name: name, file: ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/search_controller_test.rb
test/controllers/admin/search_controller_test.rb
require "test_helper" class Admin::SearchControllerTest < ActionController::TestCase setup do end %w(user editor).each do |unauthorized| test "an #{unauthorized} should not be able to search" do sign_in users(unauthorized.to_sym) get :topic_search, q: "1" assert_nil assigns(:topics) ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/users_controller_test.rb
test/controllers/admin/users_controller_test.rb
# == Schema Information # # Table name: users # # id :integer not null, primary key # login :string # identity_url :string # name :string # admin :boolean default(FALSE) # bio :text # signature ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/internal_categories_controller_test.rb
test/controllers/admin/internal_categories_controller_test.rb
require_relative '../../test_helper' class Admin::InternalCategoriesControllerTest < ActionController::TestCase setup do set_default_settings sign_in users(:admin) end test "listing internal categories" do get :index refute_nil assigns(:categories) assert_equal 5, assigns(:categories).length...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/docs_controller_test.rb
test/controllers/admin/docs_controller_test.rb
# == Schema Information # # Table name: docs # # id :integer not null, primary key # title :string # body :text # keywords :string # title_tag :string # meta_description :string # category_id :integer # user_id :integer # active ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/groups_controller_test.rb
test/controllers/admin/groups_controller_test.rb
# == Schema Information # # Table name: tags # # id :integer not null, primary key # created_at :datetime not null # updated_at :datetime not null # require 'test_helper' class Admin::GroupsControllerTest < ActionController::TestCase setup do set_default_settings end...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/forums_controller_test.rb
test/controllers/admin/forums_controller_test.rb
# == Schema Information # # Table name: forums # # id :integer not null, primary key # name :string # description :text # topics_count :integer default(0), not null # last_post_date :datetime # last_post_id :integer # private :bool...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/topics_controller_test.rb
test/controllers/admin/topics_controller_test.rb
require "test_helper" class Admin::TopicsControllerTest < ActionController::TestCase setup do # login admin for all tests of admin functions @request.headers["Accepts"] = "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" set_default_settings end %w(admin ag...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/admin/shared_controller_test.rb
test/controllers/admin/shared_controller_test.rb
require 'test_helper' class Admin::SharedControllerTest < ActionController::TestCase setup do set_default_settings end %w(admin agent editor).each do |admin| test "an #{admin} should be able to reorder docs" do sign_in users(admin.to_sym) post :update_order, object: 'doc', obj_id: 4, row_o...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/categories_test.rb
test/controllers/api/v1/categories_test.rb
# == Schema Information # # Table name: categories # # id :integer not null, primary key # name :string # icon :string # keywords :string # title_tag :string # meta_description :string # rank :integer # front_page :boolean ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/tags_test.rb
test/controllers/api/v1/tags_test.rb
# == Schema Information # # Table name: tags # # id :integer not null, primary key # name :string # description :text # color :string # require 'test_helper' class API::V1::TagsTest < ActiveSupport::TestCase include Rack::Test::Methods def app Ra...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/search_test.rb
test/controllers/api/v1/search_test.rb
require 'test_helper' class API::V1::SearchTest < ActiveSupport::TestCase include Rack::Test::Methods def app Rails.application end setup do set_default_settings @user = users(:admin) @api_key = ApiKey.create(name: "Test Search Key", user: @user) @default_params = { token: @api_key.acce...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/flags_test.rb
test/controllers/api/v1/flags_test.rb
require 'test_helper' class API::V1::FlagsTest < ActiveSupport::TestCase include Rack::Test::Methods def app Rails.application end setup do set_default_settings @user = users(:admin) @api_key = ApiKey.create(name: "Test Flags Key", user: @user) @default_params = { token: @api_key.access...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/topics_test.rb
test/controllers/api/v1/topics_test.rb
# == Schema Information # # Table name: topics # # id :integer not null, primary key # forum_id :integer # user_id :integer # user_name :string # name :string # posts_count :integer default(0), not null # waiting_on :string ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/forums_test.rb
test/controllers/api/v1/forums_test.rb
# == Schema Information # # Table name: forums # # id :integer not null, primary key # name :string # description :text # topics_count :integer default(0), not null # last_post_date :datetime # last_post_id :integer # private :bool...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/posts_test.rb
test/controllers/api/v1/posts_test.rb
# == Schema Information # # Table name: posts # # id :integer not null, primary key # topic_id :integer # user_id :integer # body :text # kind :string # active :boolean default(TRUE) # created_at :datetime not null # updated_at :datetime not null # ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/users_test.rb
test/controllers/api/v1/users_test.rb
# == Schema Information # # Table name: users # # id :integer not null, primary key # login :string # identity_url :string # name :string # admin :boolean default(FALSE) # bio :text # signature ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/settings_test.rb
test/controllers/api/v1/settings_test.rb
require 'test_helper' class API::V1::SettingsTest < ActiveSupport::TestCase include Rack::Test::Methods def app Rails.application end setup do set_default_settings @user = users(:admin) @api_key = ApiKey.create(name: "Test Search Key", user: @user) @default_params = { token: @api_key.acce...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/api/v1/docs_test.rb
test/controllers/api/v1/docs_test.rb
# == Schema Information # # Table name: docs # # id :integer not null, primary key # title :string # body :text # keywords :string # title_tag :string # meta_description :string # category_id :integer # user_id :integer # active ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/webhook/inbound_controller_test.rb
test/controllers/webhook/inbound_controller_test.rb
require 'test_helper' class Webhook::InboundControllerTest < ActionController::TestCase setup do set_default_settings @data = { "message": { "kind": "ticket", "subject": "Need Help", "body": "I need help with my purchase.", "channel": "web", ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/controllers/widget/topics_controller_test.rb
test/controllers/widget/topics_controller_test.rb
require 'test_helper' class Widget::TopicsControllerTest < ActionController::TestCase setup do set_default_settings end test "a logged out user should be able to see the widget" do get :new assert_response :success assert_select "input#topic_user_email", 1 assert_select "input#topic_user_n...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/image_test.rb
test/models/image_test.rb
# == Schema Information # # Table name: images # # id :integer not null, primary key # key :string # name :string # extension :string # file :text # created_at :datetime not null # updated_at :datetime not null # require 'test_helper' class ImageTest < Activ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/user_test.rb
test/models/user_test.rb
# == Schema Information # # Table name: users # # id :integer not null, primary key # login :string # identity_url :string # name :string # admin :boolean default(FALSE) # bio :text # signature ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/api_key_test.rb
test/models/api_key_test.rb
# == Schema Information # # Table name: api_keys # # id :integer not null, primary key # access_token :string # user_id :integer # name :string # date_expired :datetime # created_at :datetime not null # updated_at :datetime not null # require 'test_helper' cl...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/forum_test.rb
test/models/forum_test.rb
# == Schema Information # # Table name: forums # # id :integer not null, primary key # name :string # description :text # topics_count :integer default(0), not null # last_post_date :datetime # last_post_id :integer # private :bool...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/post_test.rb
test/models/post_test.rb
# == Schema Information # # Table name: posts # # id :integer not null, primary key # topic_id :integer # user_id :integer # body :text # kind :string # active :boolean default(TRUE) # created_at :datetime not null # updated_at :datetime not...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/flag_test.rb
test/models/flag_test.rb
# == Schema Information # # Table name: flags # # id :integer not null, primary key # post_id :integer # generated_topic_id :integer # reason :text # created_at :datetime not null # updated_at :datetime not null # require 'test_helpe...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/topic_test.rb
test/models/topic_test.rb
# == Schema Information # # Table name: topics # # id :integer not null, primary key # forum_id :integer # user_id :integer # user_name :string # name :string # posts_count :integer default(0), not null # waiting_on :string ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/category_test.rb
test/models/category_test.rb
# == Schema Information # # Table name: categories # # id :integer not null, primary key # name :string # icon :string # keywords :string # title_tag :string # meta_description :string # rank :integer # front_page :boolean ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/doc_test.rb
test/models/doc_test.rb
# == Schema Information # # Table name: docs # # id :integer not null, primary key # title :string # body :text # keywords :string # title_tag :string # meta_description :string # category_id :integer # user_id :integer # active ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false
helpyio/helpy
https://github.com/helpyio/helpy/blob/26aff0e485aee91f41098ee986cfe750746dcfee/test/models/vote_test.rb
test/models/vote_test.rb
# == Schema Information # # Table name: votes # # id :integer not null, primary key # points :integer default(1) # voteable_type :string # voteable_id :integer # user_id :integer default(0) # created_at :datetime not null # updated_at :datetime ...
ruby
MIT
26aff0e485aee91f41098ee986cfe750746dcfee
2026-01-04T15:54:37.819890Z
false