nyastodon/spec
aschmitz e18ed4bbc7 Fix StatusLengthValidator tests
This fixes the StatusLengthValidator tests to use
StatusLengthValidator::MAX_CHARS to derive the length of the strings
tested, and so makes them resilient to changes in MAX_CHARS (such as the
one that made these tests fail, with it being changed from 500 to 512).

This seems a bit odd for some types of tests, but appears to make sense
here, where the testing goes beyond `status.length > MAX_CHARS`.
2017-09-02 11:37:40 -05:00
..
controllers Merge remote-tracking branch 'upstream/master' 2017-08-07 22:43:52 +02:00
fabricators Introduce access token fabricators (#4401) 2017-07-27 15:16:07 +02:00
features Add scenarios for log in (#3497) 2017-06-01 17:25:59 +02:00
fixtures Use charlock_holmes instead of nkf at FetchLinkCardService (#4080) 2017-07-08 22:44:31 +02:00
helpers Fallback to site_hostname when site_title is empty (#4394) 2017-07-27 15:13:49 +02:00
javascript feat: Cache status height to avoid expensive renders (#4439) 2017-08-07 20:32:03 +02:00
lib Use the same emoji data on the frontend and backend (#4284) 2017-07-21 04:27:40 +02:00
mailers Spec UserMailer (#3757) 2017-06-17 01:15:00 +02:00
models Merge upstream (#111) 2017-08-01 13:20:29 -07:00
policies Add status destroy authorization to policy (#3453) 2017-05-30 22:56:31 +02:00
presenters Use around hook to restore context in InstancePresenter spec (#3430) 2017-05-30 09:03:35 -04:00
requests Redesign the landing page, mount public timeline on it (#4122) 2017-07-11 15:27:59 +02:00
routing Move create/destroy actions for api/v1/statuses to namespace (#3678) 2017-06-10 09:39:26 +02:00
services Fix intermittent test failures due to accidentally reused class instance between threads (#4287) 2017-07-21 12:45:13 +02:00
support Some minor change and spec for Account (#3813) 2017-06-22 18:34:27 +02:00
validators Fix StatusLengthValidator tests 2017-09-02 11:37:40 -05:00
views Add commit_hash to instance presenter double (#107) 2017-07-28 19:25:30 -04:00
workers Bump to 1.5.0rc1 (#4318) 2017-07-24 16:21:08 +02:00
rails_helper.rb Fix #4058 - Use a long-lived cookie to keep track of user-level sessions (#4091) 2017-07-07 23:25:15 +02:00
spec_helper.rb Add more tests for AtomSerializer (#2096) 2017-04-18 22:30:17 +02:00