Commit Graph

178 Commits

Author SHA1 Message Date
Marcin Kulik
f4c9122f74 Clean db before whole suite 2013-05-28 11:13:00 +02:00
Marcin Kulik
dda849a6a6 Generate coverage only when requested 2013-05-28 11:13:00 +02:00
Marcin Kulik
829d476495 Shorter Darwin-like uname 2012-12-11 00:58:45 +01:00
Marcin Kulik
b284781620 Cover all scenatios in asciicasts controller specs 2012-12-09 21:25:45 +01:00
Marcin Kulik
4a9036a9d9 Cover unauthenticated path in user_token controller spec 2012-12-09 21:24:57 +01:00
Marcin Kulik
b4095bd372 Use truncation cleaning strategy only for js tagged specs 2012-12-09 16:27:36 +01:00
Marcin Kulik
c0faca04f0 Namespace ControllerMacros module 2012-12-09 16:27:12 +01:00
Marcin Kulik
a6c06a3ce7 More AsciicastDecorator specs 2012-12-09 16:15:17 +01:00
Marcin Kulik
e236584458 Add explicit routing in ApplicationController spec 2012-12-01 21:31:59 +01:00
Marcin Kulik
edca2027ce Fix AsciicastsController#destroy spec 2012-12-01 20:38:22 +01:00
Marcin Kulik
26923b64a5 Do not use set_current_view_context for decorator specs 2012-12-01 20:06:33 +01:00
Marcin Kulik
92dde22afe Use proper verb in SessionsController specs 2012-12-01 19:18:34 +01:00
Marcin Kulik
d0e16853e0 Pass required action params in SessionsController spec 2012-12-01 19:06:20 +01:00
Marcin Kulik
67a182d6ca Use new FactoryGirl syntax exclusively 2012-12-01 18:45:06 +01:00
Marcin Kulik
dd59b7db32 Update AnsiInterpreter spec to reflect interface change 2012-12-01 16:15:00 +01:00
Marcin Kulik
243bffee82 Additional AnsiInterpreter specs 2012-11-29 18:44:42 +01:00
Marcin Kulik
318fa52d94 Update Brush specs 2012-11-29 18:44:42 +01:00
Marcin Kulik
70b1f27234 "Reverse video" support 2012-11-29 18:44:42 +01:00
Marcin Kulik
454228bc28 More specs for Brush 2012-11-29 18:44:42 +01:00
Marcin Kulik
78ecdcbe76 Remove old obsolete specs 2012-11-29 18:44:42 +01:00
Marcin Kulik
d95da9635a Update AnsiInterpreter specs to handle new implementation 2012-11-29 18:44:41 +01:00
Marcin Kulik
c201c510e7 Move sgr_interpreter_spec to vt dir 2012-11-29 18:44:41 +01:00
Marcin Kulik
2e06e9d39d More specs for Brush 2012-11-29 18:44:41 +01:00
Marcin Kulik
fa9d2637a8 Proper specs for SgrInterpreter 2012-11-29 18:44:41 +01:00
Marcin Kulik
1aad013bb3 jasmine config 2012-11-29 18:44:41 +01:00
Marcin Kulik
ab387e6fdf Use jasmine-rails and jasmine-headless-webkit for headless JS testing 2012-11-29 18:44:41 +01:00
Marcin Kulik
70af02102e 7 more full playback tests 2012-11-22 00:42:21 +01:00
Marcin Kulik
f39dc918f2 Use longer wait time for capybara in playback test 2012-11-22 00:06:22 +01:00
Marcin Kulik
a96c5e381b Move test helper methods inside the describe block 2012-11-21 23:53:48 +01:00
Marcin Kulik
92a09476e8 Check if playback succeeded in capybara test 2012-11-20 18:47:22 +01:00
Marcin Kulik
26a6979c8e Visit raw asciicast page 2012-11-19 23:15:43 +01:00
Marcin Kulik
a2ee3b1d10 Cut the lines 2012-11-19 00:37:25 +01:00
Marcin Kulik
0e535b4d43 Integration tests for player page 2012-11-19 00:19:42 +01:00
Marcin Kulik
db4c4a397c Return 'unknown' as os when uname is empty 2012-11-18 22:12:37 +01:00
Marcin Kulik
668f382a69 Fix specs 2012-07-29 19:43:03 +02:00
Marcin Kulik
785273707b Proper design, finally! 2012-07-25 20:24:20 +02:00
Marcin Kulik
a57d05597e Don't crash on comment for asciicast without user 2012-06-10 14:11:45 +02:00
Marcin Kulik
06e7314f23 Fix AsciicastsController spec 2012-06-10 14:04:19 +02:00
Marcin Kulik
347068e064 Tests adjustments for girl_friday 2012-06-07 17:57:26 +02:00
Marcin Kulik
3a7f462b13 Send email to asciicast author when someone comments 2012-04-12 15:49:20 +02:00
Marcin Kulik
0bb3e75fb6 No need for instance variables in CommentsController#create 2012-04-12 14:47:53 +02:00
Marcin Kulik
10b64e08b4 Pending 2012-04-09 23:53:38 +02:00
Marcin Kulik
4549592238 Use "method" naming for describe blocks in controller specs 2012-04-09 23:51:06 +02:00
Marcin Kulik
8398750aab Specs for StaticPagesController 2012-04-09 23:50:28 +02:00
Marcin Kulik
d6776ee261 Specs for asciicasts_controller 2012-04-09 23:44:10 +02:00
Marcin Kulik
648cf1140b Move all 404 handling to application_controller 2012-04-09 22:56:26 +02:00
Marcin Kulik
46d0a94dda Spec for Api::AsciicastsController#create 2012-04-09 22:46:38 +02:00
Marcin Kulik
db3980315a Decoratos group for simplecov 2012-04-09 20:07:34 +02:00
Marcin Kulik
35817e72d4 Spec for Asciicast#meta= 2012-04-09 20:04:58 +02:00
Marcin Kulik
c0e386ebc2 Simplecov 2012-04-09 18:23:28 +02:00
Marcin Kulik
9ddd44abb5 Move comment specs as comment decorator specs 2012-04-09 18:22:46 +02:00
Marcin Kulik
e26875f68a Update CommentsController spec 2012-04-09 17:06:41 +02:00
Marcin Kulik
c4b5b16e6f Merge branch 'likes'
* likes:
  Data model for "Like"

Conflicts:
	app/models/user.rb
	db/schema.rb
2012-04-09 17:03:50 +02:00
Marcin Kulik
dccca52c26 Update specs 2012-04-09 15:56:26 +02:00
Marcin Kulik
98d80ae1fd More specs for home controller 2012-04-07 11:13:43 +02:00
Marcin Kulik
936dac6baa Markdown in comments 2012-04-06 23:46:44 +02:00
Marcin Kulik
27219f48b7 Thumbnail generation in Sidekiq worker 2012-04-06 20:53:04 +02:00
Marcin Kulik
0cbd732980 Data model for "Like" 2012-04-06 14:06:40 +02:00
Marcin Kulik
e425441c05 Use new factory_girl syntax 2012-03-18 12:07:01 +01:00
Marcin Kulik
0455aeafb7 Fix code style issues in specs 2012-03-13 22:18:13 +01:00
Marcin Kulik
61b3890a3d Merge remote-tracking branch 'origin/unique-nickname'
* origin/unique-nickname:
  Keep sensitive signup data in session
  Add users factory back
  rm users factories
  Add view spec for users#new
  Add specs to user#create
  Validate nickname uniquness

Conflicts:
	Gemfile
	Gemfile.lock
2012-03-10 18:30:33 +01:00
Micha Wrobel
d6273d4259 Keep sensitive signup data in session 2012-03-10 14:58:10 +01:00
Micha Wrobel
ffb88b39ce Add users factory back 2012-03-10 14:57:53 +01:00
Micha Wrobel
43758ede64 rm users factories 2012-03-10 14:56:48 +01:00
Marcin Kulik
3f798ab7aa Check code style with cane and tailor 2012-03-08 15:00:10 +01:00
Marcin Kulik
a3d12d4a84 Fix typo in filename 2012-03-08 15:00:00 +01:00
Micha Wrobel
7a142927d3 Add view spec for users#new 2012-03-06 23:18:15 +01:00
Micha Wrobel
6b40d9dbc8 Add specs to user#create 2012-03-06 23:04:35 +01:00
Micha Wrobel
fc53b71ee2 Validate nickname uniquness 2012-03-06 22:39:16 +01:00
Marcin Kulik
9e0a6acf55 Spec for #redirect_back_or_to 2012-03-06 22:03:12 +01:00
Marcin Kulik
8216781067 Use store_location in Unauthorized handler 2012-03-06 21:29:07 +01:00
Marcin Kulik
a0041abed1 store_location / get_stored_location 2012-03-06 21:28:32 +01:00
Marcin Kulik
80df89ec84 Fix typo 2012-03-06 21:27:17 +01:00
Marcin Kulik
98d5285a23 Require auth in UserTokensController (closes #53) 2012-03-06 19:51:40 +01:00
Marcin Kulik
16d11a1249 Redirect to profile page after claiming (closes #51) 2012-03-06 19:44:27 +01:00
Marcin Kulik
11a8c66922 Remove empty helper spec files 2012-03-06 19:22:27 +01:00
Marcin Kulik
4041b31284 Update usage of FactoryGirl to new syntax 2012-03-06 19:09:15 +01:00
Marcin Kulik
51dfa8474f Profile paths: ~sickill 2012-03-04 23:07:45 +01:00
Marcin Kulik
35af4cf9e7 Home and installation pages 2012-03-04 22:44:04 +01:00
Marcin Kulik
c4f40322ed Merge branch 'master' into comments
* master:
  Display asciicast author and creation time
  Claiming asciicasts
  User#add_user_token
  Asciicast.assign_user
  User tokens for assigning asciicasts to users
  Better styles + pagination

Conflicts:
	app/models/asciicast.rb
	db/schema.rb
	spec/factories/asciicasts.rb
	spec/factories/users.rb
2012-03-04 21:14:35 +01:00
Marcin Kulik
9e59b19c16 Claiming asciicasts 2012-03-04 20:30:26 +01:00
Marcin Kulik
0de5784e68 User#add_user_token 2012-03-04 20:29:19 +01:00
Marcin Kulik
9f51211bc1 Asciicast.assign_user 2012-03-04 20:28:30 +01:00
Marcin Kulik
1ba9067551 User tokens for assigning asciicasts to users 2012-03-04 18:14:58 +01:00
Micha Wrobel
5ad02c8610 Remove wrong route 2012-03-04 16:48:24 +01:00
Micha Wrobel
5d52be2bae Add Forbiden Exception and refactor existing actions 2012-03-04 15:26:05 +01:00
Micha Wrobel
4f47f0a7fc Add specs for destroy 2012-03-04 14:37:30 +01:00
Micha Wrobel
706460e71b Show time ago in comments 2012-03-04 13:50:57 +01:00
Micha Wrobel
293e67ed86 No should in specs 2012-03-04 13:50:57 +01:00
Micha Wrobel
e7f5f57424 Some refactoring, and make possible to remove own comments 2012-03-04 13:50:56 +01:00
Micha Wrobel
9094b8b0b6 Override as_json to include more data 2012-03-04 13:50:17 +01:00
Micha Wrobel
62849d150e Make asciicast factory valid 2012-03-04 13:50:17 +01:00
Micha Wrobel
33651dbe95 Add uid sequence 2012-03-04 13:50:16 +01:00
Micha Wrobel
70cf1bdc3b Add comment resource 2012-03-04 13:50:16 +01:00
Marcin Kulik
8cbfe6844b Fix typo 2012-03-02 22:36:26 +01:00
Marcin Kulik
30f6236b79 Fix OauthHelper.get_avatar_url 2012-03-02 22:33:37 +01:00
Marcin Kulik
6eeafdf699 Extract SGR codes interpretation to separate class 2012-02-29 09:08:16 +01:00
Micha Wrobel
d4f127508f Add nickname column to users 2012-02-26 20:11:09 +01:00
Micha Wrobel
2669bbb310 Don't use assigns(:current_user) in spec 2012-02-26 20:10:09 +01:00
Micha Wrobel
96fee0c6da use get method instead delete 2012-02-26 20:09:07 +01:00