about summary refs log tree commit diff
path: root/spec/helpers
AgeCommit message (Collapse)Author
2017-05-29Spec HomeHelper (#3415)Akihiko Odaki
2017-05-29Spec HttpHelper (#3416)Akihiko Odaki
2017-04-23Ensure i18n matches options (#2358)Matt Jankowski
* Add failing spec showing that human_locales does not match what i18n knows about * Add missing `ar` key for arabic to human locales * Remove duplicate `id` key from available locales * Sort keys in human locales list * Add spec for human_locale helper
2017-04-23Test embedded_view related code in a helper (#2282)Joël Quenneville
The two methods `StreamEntriesHelper#stream_link_target` and `StreamEntriesHelper#acct` are based on checking whether we are running in an embedded view. This adds some test helper code to make the testing easier. We extracted some "magic strings" to constants to lower the coupling in the specs.
2017-04-23Add test coverage to CSS class generation (#2285)Joël Quenneville
The code that generates CSS is based on a lot of boolean conditions. The possible combinations of these grows exponentially as we add more conditions. Since most of the code is conditional on a single boolean, we tested the following: 1. All `false` 2. All `true` 3. Each individual flag set to `true` The methods tested are: * `StreamEntriesHelper#style_classes` * `StreamEntriesHelper#microformats_classes` * `StreamEntriesHelper#microformats_h_class`
2017-04-22Add tests for StreamEntriesHelper#rtl? (#2286)Joël Quenneville
We used some random Arabic characters to test that the various RTL conditions got triggered.
2017-04-18Instance helper to replace site title helper (#2038)Matt Jankowski
* Move site title helper to instance helper (name change only) * Remove newline in <title> tag * Add site_hostname helper method to wrap up local_domain value * Use site_hostname helper in places that need local_domain value
2017-04-16View spec fix (#1888)Matt Jankowski
* Add option to disable verify partial doubles * Add show_landing_strip? helper method * Use show_landing_strip? helper in accounts and stream entries views * Fix naming in view specs
2017-04-15Rename admin/accounts_helper to admin/filter_helper (#1816)Matt Jankowski
- Add some spec coverage for both methods - Add explicit constant call-outs for where the params are from
2017-04-13Remove pending specs for methods that dont exist (#1658)Matt Jankowski
* Remote spec for non-existent entry_classes helper method This method no longer exists, and is handled by a local variable in a partial instead. * Remove spec for non-existent Account#ping! method
2017-04-11Remove unused methods from StreamEntriesHelper (#1365)Matt Jankowski
Removes: - avatar_for_status_url - relative_time - reblogged_by_me_class - favourited_by_me_class
2017-04-11Remove unused AtomBuilderHelper (#1364)Matt Jankowski
This was used in the views/atom/user_stream.xml.ruby file, which no longer is used.
2017-04-11Pagination improvements (#1445)Matt Jankowski
* Replace will_paginate with kaminari * Use #page instead of #paginate in controllers * Replace will_paginate.page_gap with pagination.truncate in i18n * Customize kaminari views to match prior styles * Set kaminari options to match prior behavior * Replace will_paginate with paginate in views
2017-04-09Helper cleanup (#1348)Matt Jankowski
* Remove unused helper files * Add coverage for application helper * Add coverage for StreamEntriesHelper #display_name
2017-04-08Use Setting.site_title value for `og:site_name` occurrences (#1194)Matt Jankowski
* Add helper method to return Setting.site_title * Use site_title helper in application layout * Use site_title value for og:site_name
2017-02-11Make follow requests federateEugen Rochko
2016-12-29Add API for retrieving blocked accountsEugen Rochko
2016-12-29Add ability to use remote follow function on other sitesEugen Rochko
2016-12-26Replacing follow requests in the settings area with in-UI columnEugen Rochko
2016-12-26Adding follow requests APIEugen Rochko
2016-12-23Add page for authorizing/rejecting follow requestsEugen Rochko
2016-12-13Improved admin UIEugen Rochko
2016-12-04Do not autoplay videos, display play button instead. Use expiring links when ↵Eugen Rochko
using S3. Do not keep originals for avatars/headers, resize avatars down to 120x120 instead of 300x300. Set cache headers on S3 stuff, also make it private (aka only accessible via expiring links to prevent hotlinking)
2016-11-30Add basic OEmbed provider API, fix #247Eugen Rochko
2016-11-30Per-status control for unlisted mode, also federation for unlisted modeEugen Rochko
Fix #233, fix #268
2016-11-30Normalize localizations, add stub for admin/accountsEugen Rochko
2016-11-28Add simple admin overview of PuSH subscriptionsEugen Rochko
2016-11-05Adding hashtagsEugen Rochko
2016-10-14E-mail preferences pageEugen Rochko
2016-09-27Adding landing pageEugen Rochko
2016-09-27Fix #52 - Add API versioning (v1)Eugen Rochko
2016-09-26Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - appEugen Rochko
registration API
2016-09-09Refactored generation of unique tags, URIs and object URLs into own classes,Eugen Rochko
as well as formatting of content
2016-09-08Optimized n+1 queries in accounts Atom and HTML viewsEugen Rochko
Added stack trace for SQL queries in development Removed badly thought out accounts/lookup API
2016-09-08Removing default avatarsEugen Rochko
2016-09-05Adding enclosures to Atom and statuses JSONEugen Rochko
2016-09-05PostStatusService can attach media to status, ProcessFeedService likewiseEugen Rochko
2016-09-05Add API to upload media attachmentsEugen Rochko
2016-09-04Normalized data in Redux, fix for asset URLs when rendered outside requestEugen Rochko
2016-03-27Fix issue with unresolvable usernamesEugen Rochko
2016-03-25Fix subscriptions:clear task, refactor feeds, refactor streamable activitesEugen Rochko
and atom feed generation to some extent, as well as the way mentions are stored
2016-03-21Adding Turbolinks, adding status posting form on homepageEugen Rochko
2016-03-21Fix text color in dashboard inputs, sanitize remote status content in UI,Eugen Rochko
simplify FanOutOnWriteService, add /api/accounts/lookup method
2016-03-20Adding more tests for helpersEugen Rochko
2016-03-19Removing some unused gems, adding pagination to profiles, fix #10Eugen Rochko
2016-03-19Fix #13, Atom feeds now contain formatted post contentEugen Rochko
2016-03-18Removing autogenerated test stubs that were not neededEugen Rochko
2016-03-14Bind oauth applications to usersEugen Rochko
2016-03-12Adding simple_form, adding profile settings, header imageEugen Rochko
2016-03-07Adding doorkeeper, adding a REST APIEugen Rochko
POST /api/statuses Params: status (text contents), in_reply_to_id (optional) GET /api/statuses/:id POST /api/statuses/:id/reblog GET /api/accounts/:id GET /api/accounts/:id/following GET /api/accounts/:id/followers POST /api/accounts/:id/follow POST /api/accounts/:id/unfollow POST /api/follows Params: uri (e.g. user@domain) OAuth authentication is currently disabled, but the API can be used with HTTP Auth.