my_forum 0.0.1.beta32 → 0.0.1.beta33

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -0,0 +1,24 @@
1
+ require 'rails_helper'
2
+
3
+ module MyForum
4
+ RSpec.describe PostsHelper, type: :helper do
5
+ describe 'Youtube' do
6
+ it 'should parse youtube links' do
7
+ {
8
+ 'some text https://www.youtube.com/watch?v=HX-Jz3GESM0 text' => "some text <iframe width='560' height='315' src='https://www.youtube.com/embed/HX-Jz3GESM0' frameborder='0' allowfullscreen></iframe> text",
9
+ 'some text https://www.youtube.com/watch?v=IEmU6Oqpx7E text' => "some text <iframe width='560' height='315' src='https://www.youtube.com/embed/IEmU6Oqpx7E' frameborder='0' allowfullscreen></iframe> text",
10
+ 'some text http://youtu.be/croRTTsFtdw' => "some text <iframe width='560' height='315' src='https://www.youtube.com/embed/croRTTsFtdw' frameborder='0' allowfullscreen></iframe>",
11
+ 'http://www.youtube.com/watch?v=TsDbnX_YgU4#ws' => "<iframe width='560' height='315' src='https://www.youtube.com/embed/TsDbnX_YgU4' frameborder='0' allowfullscreen></iframe>#ws"
12
+
13
+ }.each do |text, formatted_text|
14
+ expect(format_bbcode(text.dup)).to eq formatted_text
15
+ end
16
+ end
17
+
18
+ end
19
+
20
+ def emoticons_list
21
+ []
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta32
4
+ version: 0.0.1.beta33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -336,6 +336,8 @@ files:
336
336
  - spec/dummy/public/422.html
337
337
  - spec/dummy/public/500.html
338
338
  - spec/dummy/public/favicon.ico
339
+ - spec/dummy/test.db
340
+ - spec/helpers/my_forum/posts_helper_spec.rb
339
341
  - spec/helpers/my_forum/private_messages_helper_spec.rb
340
342
  - spec/models/my_forum/emoticon_spec.rb
341
343
  - spec/models/my_forum/private_message_spec.rb
@@ -408,6 +410,8 @@ test_files:
408
410
  - spec/dummy/public/favicon.ico
409
411
  - spec/dummy/Rakefile
410
412
  - spec/dummy/README.rdoc
413
+ - spec/dummy/test.db
414
+ - spec/helpers/my_forum/posts_helper_spec.rb
411
415
  - spec/helpers/my_forum/private_messages_helper_spec.rb
412
416
  - spec/models/my_forum/emoticon_spec.rb
413
417
  - spec/models/my_forum/private_message_spec.rb