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
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/jobs/feed_crawler/concurrency_limit_test.rb
test/jobs/feed_crawler/concurrency_limit_test.rb
require "test_helper" module FeedCrawler class ConcurrencyLimitTest < ActiveSupport::TestCase def test_limits result1 = nil result2 = nil t1 = Thread.new do result1 = FeedCrawler::ConcurrencyLimit.acquire("https://example.com", timeout: 5) do sleep(0.1) true ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/jobs/feed_crawler/cache_test.rb
test/jobs/feed_crawler/cache_test.rb
require "test_helper" module FeedCrawler class CacheTest < ActiveSupport::TestCase def setup flush_redis end def test_should_delete cache_key = "cache_key" Cache.increment(cache_key) assert_equal(1, Cache.count(cache_key)) Cache.delete(cache_key) assert_equal(0, Cache...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/clear_test.rb
test/system/clear_test.rb
require "application_system_test_case" class ClearTest < ApplicationSystemTestCase test "Clear Recently Read" do user = users(:ben) login_as(user) show_article_setup user.recently_read_entries.create!(entry: @entries.first) click_link "Recently Read" accept_confirm do find(".collecti...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/newsletter_test.rb
test/system/newsletter_test.rb
require "application_system_test_case" class NewsletterTest < ApplicationSystemTestCase test "Create Newsletter Address" do user = users(:ben) user.setting_on!(:addresses_available) login_as(user) visit settings_newsletters_path click_link "New Address" fill_in "authentication_token[token]...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/signup_test.rb
test/system/signup_test.rb
require "application_system_test_case" class SignupTest < ApplicationSystemTestCase # test "Signup" do # StripeMock.start # plan = plans(:trial) # create_stripe_plan(plan) # # visit signup_path # fill_in 'Email', with: SecureRandom.hex # fill_in 'Password', with: SecureRandom.hex # clic...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/search_test.rb
test/system/search_test.rb
require "application_system_test_case" class SearchTest < ApplicationSystemTestCase test "search" do show_article_setup login_as(@user) wait_for_ajax find("[data-event-identifier-param=toggle-search]").click wait_for_ajax assert find("[data-controller=search-form]").visible? find("[...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/format_test.rb
test/system/format_test.rb
require "application_system_test_case" class FormatTest < ApplicationSystemTestCase test "change format" do show_article_setup @user.update(theme: "sunset") @user.update(font: "serif-1") @user.update(font_size: "5") login_as(@user) click_link(@entries.first.title) find("[data-behavior~=...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/article_test.rb
test/system/article_test.rb
require "application_system_test_case" class ArticleTest < ApplicationSystemTestCase test "Show article" do show_article assert_text @entries.first.content end test "Show tweet" do @user = users(:ben) @feed = create_feeds(@user, 1).first entry = create_tweet_entry(@user.feeds.first) lo...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/subscribe_test.rb
test/system/subscribe_test.rb
require "application_system_test_case" class SubscribeTest < ApplicationSystemTestCase test "Subscribe URL" do feed_url = "http://www.example.com/atom.xml" stub_request_file("atom.xml", feed_url) user = users(:ben) login_as(user) visit root_path(subscribe: feed_url) within(".modal-purpose-...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/edit_test.rb
test/system/edit_test.rb
require "application_system_test_case" class EditTest < ApplicationSystemTestCase test "Edit feed" do show_article_setup login_as(@user) feed_name = "New Name" tag_name = "Tag" within ".feeds-column" do click_link @feed.title find("[data-behavior~=feed_settings]").click end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/system/login_test.rb
test/system/login_test.rb
require "application_system_test_case" class LoginTest < ApplicationSystemTestCase test "Login" do user = users(:ben) login_as(user) find("[data-behavior~=show_subscribe]") end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/support/assertions.rb
test/support/assertions.rb
require "minitest/assertions" module Feedbin module Assertions def assert_has_keys(keys, hash) assert(keys.all? { |key| hash.key?(key) }) end def assert_equal_ids(collection, results) expected = Set.new(collection.map(&:id)) actual = Set.new(results.map { |result| result["id"] }) ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/support/api_controller_test_case.rb
test/support/api_controller_test_case.rb
class ApiControllerTestCase < ActionController::TestCase include Feedbin::Assertions setup do @request.headers["HTTP_HOST"] = "api.#{@request.headers["HTTP_HOST"]}" end def api_content_type @request.headers["Content-Type"] = "application/json; charset=utf-8" end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/support/push_server_mock.rb
test/support/push_server_mock.rb
class PushServerMock attr_reader :status, :count def initialize(status) @status = status @count = 0 end def with yield self end def prepare_push(notification) ResponseMock.new(@status, notification) end def join true end def push_async(notification) @count += 1 true ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/support/factory_helper.rb
test/support/factory_helper.rb
module FactoryHelper def create_feeds(users, count = 3) flush_redis users = [*users] feeds = count.times.map { url = Faker::Internet.url host = URI(url).host Feed.create(feed_url: url, host: host, title: Faker::Lorem.sentence).tap do |feed| users.map do |user| user.subs...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/support/login_helper.rb
test/support/login_helper.rb
require "bcrypt" module LoginHelper def login_as(user) if @request.subdomain == "api" @request.headers[:authorization] = ActionController::HttpAuthentication::Basic.encode_credentials(user.email, default_password) else cookies.signed[:auth_token] = user.auth_token end end def default_pas...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/helpers/batch_jobs_test.rb
test/helpers/batch_jobs_test.rb
require "test_helper" class SidekiqHelperTests < ActiveSupport::TestCase include SidekiqHelper test "should enqueue all records" do klass = MockModel sidekiq_class = SidekiqHelperJob queue_name = sidekiq_class.get_sidekiq_options["queue"].to_s queue = Sidekiq::Queues[queue_name] queue.clear ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/subscriptions_controller_test.rb
test/controllers/subscriptions_controller_test.rb
require "test_helper" class SubscriptionsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get index" do login_as @user get :index, format: :xml assert_response :success end test "should create subscription" do html_url = "www.example.com/index.ht...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/remote_files_controller_test.rb
test/controllers/remote_files_controller_test.rb
require "test_helper" class RemoteFilesControllerTest < ActionController::TestCase setup do @user = users(:ben) flush_redis end test "should be unauthorized without pull key" do get :icon, params: {signature: "asdf", url: "asdf"} assert_response :not_found end test "should be unauthorized w...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/sessions_controller_test.rb
test/controllers/sessions_controller_test.rb
require "test_helper" class SessionsControllerTest < ActionController::TestCase include SessionsHelper setup do @user = users(:ben) end test "should get new" do get :new assert_response :success end test "should create new session" do post :create, params: {email: @user.email, password: ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/recently_played_entries_controller_test.rb
test/controllers/recently_played_entries_controller_test.rb
require "test_helper" class RecentlyPlayedEntriesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get index" do @user.recently_played_entries.create!(entry: @entries.first) login_as @user get :...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/unread_entries_controller_test.rb
test/controllers/unread_entries_controller_test.rb
require "test_helper" class UnreadEntriesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should toggle read" do login_as @user assert_difference "UnreadEntry.count", -1 do patch :update, params: {i...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/updated_entries_controller_test.rb
test/controllers/updated_entries_controller_test.rb
require "test_helper" class UpdatedEntriesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries @updated = @entries.each do |entry| UpdatedEntry.create_from_owners(@user.id, entry) end end test "should get index" ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/bookmarklet_controller_test.rb
test/controllers/bookmarklet_controller_test.rb
require "test_helper" class BookmarkletControllerTest < ActionController::TestCase test "should get save_webpage bookmarklet" do get :script, params: {cache_buster: Time.now.to_i} assert_response :found end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/starred_entries_controller_test.rb
test/controllers/starred_entries_controller_test.rb
require "test_helper" class StarredEntriesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries @entries.each do |entry| StarredEntry.create_from_owners(@user, entry) end end test "should get index" do @user.s...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/pages_internal_controller_test.rb
test/controllers/pages_internal_controller_test.rb
require "test_helper" class PagesInternalControllerTest < ActionController::TestCase test "creates a new job to find page" do user = users(:ben) login_as user stub_request_file("parsed_page.json", /extract\.example\.com/, headers: {"Content-Type" => "application/json; charset=utf-8"}) assert_differ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings_controller_test.rb
test/controllers/settings_controller_test.rb
require "test_helper" class SettingsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get settings" do login_as @user get :index assert_response :success end test "should get account" do login_as @user get :account assert_response :success...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/feeds_controller_test.rb
test/controllers/feeds_controller_test.rb
require "test_helper" class FeedsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "gets feed by url" do login_as @user stub_request_file("atom.xml", "http://example.com/") post :search, params: {q: "example.com"}, xhr: true assert_equal("Feedbin", assigns(:fe...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/web_sub_controller_test.rb
test/controllers/web_sub_controller_test.rb
require "test_helper" class WebSubControllerTest < ActionController::TestCase setup do @user = users(:ben) flush_redis end test "web_sub subscribe" do feed = Feed.first challenge = Faker::Internet.slug get :verify, params: { "id" => feed.id, "signature" =>...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/fix_feeds_controller_test.rb
test/controllers/fix_feeds_controller_test.rb
require "test_helper" class FixFeedsControllerTest < ActionController::TestCase setup do @user = users(:ben) @subscription = @user.subscriptions.first tag = Tag.create!(name: "Tag") @tagging = @user.taggings.create!(tag: tag, feed: @subscription.feed) @discovered_feed = DiscoveredFeed.create!(sit...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/sharing_services_controller_test.rb
test/controllers/sharing_services_controller_test.rb
require "test_helper" class SharingServicesControllerTest < ActionController::TestCase setup do @user = users(:ben) @services = { custom: @user.sharing_services.create(label: "Twitter", url: "${source}${url}${title}"), supported: @user.supported_sharing_services.create(service_id: "email") } ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/tags_controller_test.rb
test/controllers/tags_controller_test.rb
require "test_helper" class TagsControllerTest < ActionController::TestCase def setup @user = users(:ben) @tag = @user.feeds.first.tag("Tag", @user).first.tag end test "should get index" do login_as @user get :index, params: {query: @tag.name}, format: :json assert_response :success data...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/newsletters_controller_test.rb
test/controllers/newsletters_controller_test.rb
require "test_helper" class NewslettersControllerTest < ActionController::TestCase setup do file_url = "https://bucket.s3.amazonaws.com/path.to.email" stub_request_file("email_html.eml", file_url) stub_request(:delete, file_url) .to_return(status: 204) stub_request(:get, /benubois\.com/) ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/actions_controller_test.rb
test/controllers/actions_controller_test.rb
require "test_helper" class ActionsControllerTest < ActionController::TestCase setup do @action = actions(:ben_one) end test "should get index" do login_as users(:ben) get :index assert_response :success assert_not_nil assigns(:actions) end test "should get new" do login_as users(:b...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/entries_search_controller_test.rb
test/controllers/entries_search_controller_test.rb
require "test_helper" class EntriesSearchControllerTest < ActionController::TestCase tests EntriesController # explicitly declare controller setup do @user = users(:ben) @entry = create_entry(@user.feeds.first) end test "should get search" do login_as @user reindex_search get :search, pa...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/password_resets_controller_test.rb
test/controllers/password_resets_controller_test.rb
require "test_helper" class PasswordResetsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "gets new" do get :new assert_response :success end test "should create password reset" do assert_difference "ActionMailer::Base.deliveries.count", +1 do Sidekiq...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/supported_sharing_services_controller_test.rb
test/controllers/supported_sharing_services_controller_test.rb
require "test_helper" class SupportedSharingServicesControllerTest < ActionController::TestCase setup do @user = users(:ben) @service = @user.supported_sharing_services.create(service_id: "kindle") end test "should create supported sharing service" do login_as @user assert_difference "SupportedS...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/billing_events_controller_test.rb
test/controllers/billing_events_controller_test.rb
require "test_helper" class BillingEventsControllerTest < ActionController::TestCase setup do @user = users(:ben) StripeMock.start event = StripeMock.mock_webhook_event("charge.succeeded", {customer: @user.customer_id}) StripeMock.stop @billing_event = BillingEvent.create(info: event.as_json) e...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/feeds_entries_controller_test.rb
test/controllers/feeds_entries_controller_test.rb
require "test_helper" class FeedsEntriesControllerTest < ActionController::TestCase test "gets the index" do user = users(:new) feeds = create_feeds(user) entries = user.entries login_as user get :index, params: {feed_id: feeds.first}, xhr: true assert_response :success assert_equal fee...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/microposts_controller_test.rb
test/controllers/microposts_controller_test.rb
require "test_helper" class MicropostsControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get thread" do login_as @user entry = @entries.first html_url = "https://micro.blog/posts/conversation?i...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/recently_read_entries_controller_test.rb
test/controllers/recently_read_entries_controller_test.rb
require "test_helper" class RecentlyReadEntriesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get index" do @user.recently_read_entries.create!(entry: @entries.first) login_as @user get :inde...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/errors_controller_test.rb
test/controllers/errors_controller_test.rb
require "test_helper" class ErrorsControllerTest < ActionController::TestCase test "not found" do get :not_found assert_response :not_found end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/public_settings_controller_test.rb
test/controllers/public_settings_controller_test.rb
require "test_helper" class PublicSettingsControllerTest < ActionController::TestCase test "should unsubscribe from emails" do @user = users(:ben) assert @user.reload.subscribed_to_emails? unsubscribe = Rails.application.message_verifier(:unsubscribe).generate(@user.id) get :email_unsubscribe, param...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/users_controller_test.rb
test/controllers/users_controller_test.rb
require "test_helper" class UsersControllerTest < ActionController::TestCase include SessionsHelper test "should get new user" do get :new assert_response :success end test "should create user" do StripeMock.start plan = plans(:trial) create_stripe_plan(plan) assert_difference "User.c...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/pages_controller_test.rb
test/controllers/pages_controller_test.rb
require "test_helper" class PagesControllerTest < ActionController::TestCase test "creates a new job to find page" do user = users(:ben) Sidekiq::Worker.clear_all assert_difference "SavePage.jobs.size", +1 do post :create, params: {page_token: user.page_token, url: "http://example.com/article"} ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/extracts_controller_test.rb
test/controllers/extracts_controller_test.rb
require "test_helper" class ExtractsControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should extract content" do login_as @user content = Faker::Lorem.paragraph struct = OpenStruct.new(content: content...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/entries_controller_test.rb
test/controllers/entries_controller_test.rb
require "test_helper" class EntriesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get index" do login_as @user get :index, xhr: true assert_response :success assert_equal @entries.length,...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/site_controller_test.rb
test/controllers/site_controller_test.rb
require "test_helper" class SiteControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get index" do login_as @user get :index assert_response :success end test "should get headers" do login_as @user get :index assert_response :success end en...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/saved_searches_controller_test.rb
test/controllers/saved_searches_controller_test.rb
require "test_helper" class SavedSearchesControllerTest < ActionController::TestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries @saved_search = @user.saved_searches.create(query: "\"#{@entries.first.title}\"", name: "search") end test "should show saved se...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/app_store/notifications_v2_controller_test.rb
test/controllers/app_store/notifications_v2_controller_test.rb
require "test_helper" class AppStore::NotificationsV2ControllerTest < ActionController::TestCase setup do Sidekiq::Worker.clear_all @notification = load_support_json("apple_store_server_notification_v2") end test "should schedule processing job" do assert_difference -> { AppStoreNotificationProcesso...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/extension/v1/subscriptions_controller_test.rb
test/controllers/extension/v1/subscriptions_controller_test.rb
require "test_helper" class Extension::V1::SubscriptionsControllerTest < ActionController::TestCase setup do @user = users(:ben) @feed = feeds(:daring_fireball) @request.headers["Content-Type"] = "application/json" end test "finds feeds for URL" do html_url = "www.example.com/index.html" stu...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/extension/v1/addresses_controller_test.rb
test/controllers/extension/v1/addresses_controller_test.rb
require "test_helper" class Extension::V1::AddressesControllerTest < ActionController::TestCase setup do @user = users(:ben) @request.headers["Content-Type"] = "application/json" end test "should get new when authenticated with email and password" do get :new, params: {page_token: @user.page_token},...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/extension/v1/authentication_controller_test.rb
test/controllers/extension/v1/authentication_controller_test.rb
require "test_helper" class Extension::V1::AuthenticationControllerTest < ActionController::TestCase setup do @user = users(:ben) @request.headers["Content-Type"] = "application/json" end test "authenticates with email and password" do post :index, params: {email: @user.email, password: default_pass...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/extension/v1/pages_controller_test.rb
test/controllers/extension/v1/pages_controller_test.rb
require "test_helper" class Extension::V1::PagesControllerTest < ActionController::TestCase setup do @user = users(:ben) @request.headers["Content-Type"] = "application/json" end test "creates page with page token" do Sidekiq::Worker.clear_all assert_difference "SavePageFromExtension.jobs.size",...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings/subscriptions_controller_test.rb
test/controllers/settings/subscriptions_controller_test.rb
require "test_helper" class Settings::SubscriptionsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get index" do user = users(:new) feeds = create_feeds(user) entries = user.entries login_as user get :index assert_response :success asser...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings/billings_controller_test.rb
test/controllers/settings/billings_controller_test.rb
require "test_helper" class Settings::BillingsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get billing" do StripeMock.start events = [ StripeMock.mock_webhook_event("charge.succeeded", {customer: @user.customer_id}), StripeMock.mock_webhook_ev...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings/import_items_controller_test.rb
test/controllers/settings/import_items_controller_test.rb
require "test_helper" class Settings::ImportItemsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "replace feed" do login_as @user import = @user.imports.new item = import.import_items.new( status: :fixable, details: { title: "Example", ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings/imports_controller_test.rb
test/controllers/settings/imports_controller_test.rb
require "test_helper" class Settings::ImportsControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get import_export" do login_as @user get :index assert_response :success end test "should import" do login_as @user assert_difference -> { ImportIt...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings/newsletters/addresses_controller_test.rb
test/controllers/settings/newsletters/addresses_controller_test.rb
require "test_helper" class Settings::Newsletters::AddressesControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should show address" do user = users(:new) login_as user get :show, params: {id: user.newsletter_authentication_token} assert_response :success en...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/settings/newsletters/senders_controller_test.rb
test/controllers/settings/newsletters/senders_controller_test.rb
require "test_helper" class Settings::Newsletters::SendersControllerTest < ActionController::TestCase setup do @user = users(:ben) end test "should get index" do user = users(:new) login_as user get :index assert_response :success end test "should update sender" do user = users(:ne...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/podcasts/v1/subscriptions_controller_test.rb
test/controllers/api/podcasts/v1/subscriptions_controller_test.rb
require "test_helper" class Api::Podcasts::V1::SubscriptionsControllerTest < ApiControllerTestCase setup do @user = users(:ben) @feeds = create_feeds(@user) @entries = @user.entries subscription = @user.podcast_subscriptions.first subscription.subscribed! @queued_entry = @user.queued_entries.c...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/podcasts/v1/playlists_controller_test.rb
test/controllers/api/podcasts/v1/playlists_controller_test.rb
require "test_helper" class Api::Podcasts::V1::PlaylistsControllerTest < ApiControllerTestCase setup do @user = users(:ben) end test "should get index" do playlist = @user.playlists.create!(title: "Favorites") login_as @user get :index, format: :json assert_response :success data = parse_...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/podcasts/v1/queued_entries_controller_test.rb
test/controllers/api/podcasts/v1/queued_entries_controller_test.rb
require "test_helper" class Api::Podcasts::V1::QueuedEntriesControllerTest < ApiControllerTestCase setup do @user = users(:ben) @subscription = @user.podcast_subscriptions.first @feed = @subscription.feed @entry = create_entry(@feed) @queued_entry = @user.queued_entries.first end test "should...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/podcasts/v1/queued_entries/bulk_controller_test.rb
test/controllers/api/podcasts/v1/queued_entries/bulk_controller_test.rb
require "test_helper" class Api::Podcasts::V1::QueuedEntries::BulkControllerTest < ApiControllerTestCase setup do @user = users(:ben) @feed = @user.podcast_subscriptions.first.feed create_entry(@feed) create_entry(@feed) @queued_entries = @user.queued_entries end test "should update multip...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/icons_controller_test.rb
test/controllers/api/v2/icons_controller_test.rb
require "test_helper" class Api::V2::IconsControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @favicons = @feeds.map { |feed| Favicon.create!(host: feed.host, url: feed.host) } end test "should get index" do login_as @user get :index, fo...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/subscriptions_controller_test.rb
test/controllers/api/v2/subscriptions_controller_test.rb
require "test_helper" class Api::V2::SubscriptionsControllerTest < ApiControllerTestCase setup do @user = users(:ben) end test "should get index" do login_as @user get :index, format: :json assert_response :success get :index, format: :xml assert_response :success end test "should ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/unread_entries_controller_test.rb
test/controllers/api/v2/unread_entries_controller_test.rb
require "test_helper" class Api::V2::UnreadEntriesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get index" do login_as @user get :index, format: :json assert_response :success results = parse...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/suggested_feeds_controller_test.rb
test/controllers/api/v2/suggested_feeds_controller_test.rb
require "test_helper" class Api::V2::SuggestedFeedsControllerTest < ApiControllerTestCase setup do @user = users(:ben) @category = SuggestedCategory.create!(name: "Popular") @feed = Feed.create(feed_url: Faker::Internet.url) @suggested_feed = SuggestedFeed.create!(suggested_category: @category, feed:...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/updated_entries_controller_test.rb
test/controllers/api/v2/updated_entries_controller_test.rb
require "test_helper" class Api::V2::UpdatedEntriesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries @entries.map do |entry| UpdatedEntry.create_from_owners(@user.id, entry) end end test "should get index" do l...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/starred_entries_controller_test.rb
test/controllers/api/v2/starred_entries_controller_test.rb
require "test_helper" class Api::V2::StarredEntriesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get starred entries" do starred = @entries.map { |entry| StarredEntry.create_from_owners(@user, entr...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/favicons_controller_test.rb
test/controllers/api/v2/favicons_controller_test.rb
require "test_helper" class Api::V2::FaviconsControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @favicons = @feeds.map { |feed| Favicon.create!(host: feed.host, url: feed.host) } end test "should get index" do login_as @user get :index,...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/feeds_controller_test.rb
test/controllers/api/v2/feeds_controller_test.rb
require "test_helper" class Api::V2::FeedsControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) end test "should show feed" do login_as @user feed = @feeds.first get :show, params: {id: feed}, format: :json assert_response :success feed = ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/tags_controller_test.rb
test/controllers/api/v2/tags_controller_test.rb
require "test_helper" class Api::V2::TagsControllerTest < ApiControllerTestCase setup do @user = users(:ben) @tagging = @user.feeds.first.tag("new tag", @user, false).first end test "should get index" do login_as @user get :index, format: :json assert_response :success results = parse_js...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/actions_controller_test.rb
test/controllers/api/v2/actions_controller_test.rb
require "test_helper" class Api::V2::ActionsControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries @entry = @entries.first action = Action.create( user: @user, query: @entry.title, feed_ids: @feeds.map(&:id), ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/entry_counts_controller_test.rb
test/controllers/api/v2/entry_counts_controller_test.rb
require "test_helper" class Api::V2::EntryCountsControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get post_frequency" do login_as @user get :post_frequency, format: :json assert_response :success ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/in_app_purchases_controller_test.rb
test/controllers/api/v2/in_app_purchases_controller_test.rb
require "test_helper" class Api::V2::InAppPurchasesControllerTest < ApiControllerTestCase setup do @user = users(:timed) end test "should create in_app_purchase" do api_content_type login_as @user product_id, product_options = Feedbin::Application.config.iap.to_a.sample receipt = { tr...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/taggings_controller_test.rb
test/controllers/api/v2/taggings_controller_test.rb
require "test_helper" class Api::V2::TaggingsControllerTest < ApiControllerTestCase setup do @user = users(:ben) @tagging = @user.feeds.first.tag("new tag", @user, false).first end test "should get index" do login_as @user get :index, format: :json assert_response :success results = pars...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/suggested_categories_controller_test.rb
test/controllers/api/v2/suggested_categories_controller_test.rb
require "test_helper" class Api::V2::SuggestedCategoriesControllerTest < ApiControllerTestCase setup do @user = users(:ben) @category = SuggestedCategory.first_or_create(id: 1, name: "Popular") end test "gets index" do login_as @user get :index, format: :json assert_response :success res...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/feeds_entries_controller_test.rb
test/controllers/api/v2/feeds_entries_controller_test.rb
require "test_helper" class Api::V2::FeedsEntriesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get index" do login_as @user feed = @feeds.first get :index, params: {feed_id: feed}, format: :json ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/authentication_tokens_controller_test.rb
test/controllers/api/v2/authentication_tokens_controller_test.rb
require "test_helper" class Api::V2::AuthenticationTokensControllerTest < ApiControllerTestCase setup do @user = users(:new) end test "should create" do api_content_type login_as @user token = SecureRandom.hex post :create, params: {token: token}, format: :json assert_response :success ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/authentication_controller_test.rb
test/controllers/api/v2/authentication_controller_test.rb
require "test_helper" class Api::V2::AuthenticationControllerTest < ApiControllerTestCase setup do @user = users(:ben) end test "should authenticate" do login_as @user get :index assert_response :success end test "should not authenticate" do get :index assert_response :unauthorized ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/devices_controller_test.rb
test/controllers/api/v2/devices_controller_test.rb
require "test_helper" class Api::V2::DevicesControllerTest < ApiControllerTestCase setup do @user = users(:ben) end test "should create device" do api_content_type login_as @user assert_difference "Device.count", +1 do post :create, params: {device: {token: "token", device_type: Device.de...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/recently_read_entries_controller_test.rb
test/controllers/api/v2/recently_read_entries_controller_test.rb
require "test_helper" class Api::V2::RecentlyReadEntriesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get index" do recently_read = @entries.map { |entry| RecentlyReadEntry.create(user: @user, entr...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/users_controller_test.rb
test/controllers/api/v2/users_controller_test.rb
require "test_helper" class Api::V2::UsersControllerTest < ApiControllerTestCase test "should get index" do api_content_type StripeMock.start plan = plans(:trial) create_stripe_plan(plan) assert_difference "User.count", +1 do post :create, params: {user: {email: "example@example.com", pass...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/imports_controller_test.rb
test/controllers/api/v2/imports_controller_test.rb
require "test_helper" class Api::V2::ImportsControllerTest < ApiControllerTestCase setup do @user = users(:ben) end test "should create import" do login_as @user xml = <<-eot <?xml version="1.0" encoding="UTF-8"?> <opml version="1.0"> <body> <outline text="Hypercritica...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/pages_controller_test.rb
test/controllers/api/v2/pages_controller_test.rb
require "test_helper" class Api::V2::PagesControllerTest < ApiControllerTestCase setup do @user = users(:new) end test "should create page" do login_as @user stub_request_file("parsed_page.json", /extract\.example\.com/, headers: {"Content-Type" => "application/json; charset=utf-8"}) assert_diff...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/entries_controller_test.rb
test/controllers/api/v2/entries_controller_test.rb
require "test_helper" class Api::V2::EntriesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries end test "should get specific ids" do login_as @user entries = @entries.sample(2) ids = entries.map(&:id).join(",") ge...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/controllers/api/v2/saved_searches_controller_test.rb
test/controllers/api/v2/saved_searches_controller_test.rb
require "test_helper" class Api::V2::SavedSearchesControllerTest < ApiControllerTestCase setup do @user = users(:new) @feeds = create_feeds(@user) @entries = @user.entries @entry = @entries.first @saved_search = @user.saved_searches.create(query: "\"#{@entry.title}\"", name: "search") end te...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/favicon_component_test.rb
test/components/favicon_component_test.rb
require "test_helper" class FaviconComponentTest < ComponentTestCase setup do @feed = feeds(:daring_fireball) end test "generated favicon" do output = render FaviconComponent.new(feed: @feed) assert_equal %(<span class="favicon-wrap"><span class="favicon-default favicon-mask" data-color-hash-seed="...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/app/search_button_component_preview.rb
test/components/previews/app/search_button_component_preview.rb
# frozen_string_literal: true class App::SearchButtonComponentPreview < Lookbook::Preview def default render App::SearchButtonComponent.new end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/app/search_token_result_component_preview.rb
test/components/previews/app/search_token_result_component_preview.rb
# frozen_string_literal: true class App::SearchTokenResultComponentPreview < Lookbook::Preview def default render App::SearchTokenResultComponent.new do |token| token.icon do Icon("icon-search") end token.text do "text" end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/app/spinner_component_preview.rb
test/components/previews/app/spinner_component_preview.rb
# frozen_string_literal: true class App::SpinnerComponentPreview < Lookbook::Preview def default render App::SpinnerComponent.new end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/app/share_form_component_preview.rb
test/components/previews/app/share_form_component_preview.rb
# frozen_string_literal: true class App::ShareFormComponentPreview < Lookbook::Preview def default render App::ShareFormComponent.new(icon: "icon-search", title: "Title") do |token| "Form" end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/fixable/suggestion_component_preview.rb
test/components/previews/fixable/suggestion_component_preview.rb
# frozen_string_literal: true class Fixable::SuggestionComponentPreview < Lookbook::Preview # @param include_ignore toggle def default(include_ignore: false) render FixFeeds::SuggestionComponent.new(replaceable: Subscription.first, source: Subscription.first.feed, redirect: nil, include_ignore: include_ignore)...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/dialog/template_preview.rb
test/components/previews/dialog/template_preview.rb
# frozen_string_literal: true class Dialog::TemplatePreview < Lookbook::Preview def default end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/settings/h2_component_preview.rb
test/components/previews/settings/h2_component_preview.rb
# frozen_string_literal: true class Settings::H2ComponentPreview < Lookbook::Preview def default render(Settings::H2Component.new) do "Header Two" end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/settings/h1_component_preview.rb
test/components/previews/settings/h1_component_preview.rb
# frozen_string_literal: true class Settings::H1ComponentPreview < Lookbook::Preview def default render Settings::H1Component.new do "Header One" end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/settings/control_row_component_preview.rb
test/components/previews/settings/control_row_component_preview.rb
class Settings::ControlRowComponentPreview < Lookbook::Preview def default end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/settings/control_group_component_preview.rb
test/components/previews/settings/control_group_component_preview.rb
class Settings::ControlGroupComponentPreview < Lookbook::Preview def default end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/test/components/previews/settings/expandable_component_preview.rb
test/components/previews/settings/expandable_component_preview.rb
class Settings::ExpandableComponentPreview < Lookbook::Preview def default end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false