Skip to content

Commit

Permalink
Replaced http links with https (#9261)
Browse files Browse the repository at this point in the history
  • Loading branch information
lagunasmel authored Mar 8, 2021
1 parent 463efdc commit fb7055b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/functional/notes_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ def teardown
node = Node.where(type: 'note', status: 1).first
assert node.comments.length > 0
comment = node.comments.last(2).first
comment.comment = 'Test **markdown** and http://links.com'
comment.comment = 'Test **markdown** and https://links.com'
comment.save!

get :show, params: { id: node.id }

assert_select 'strong', 'markdown'
assert_select 'a', 'http://links.com'
assert_select 'a', 'https://links.com'

assert_response :success
end
Expand Down Expand Up @@ -483,13 +483,13 @@ def teardown
comment = Comment.new(nid: nodes(:one).nid,
uid: users(:bob).id,
thread: '01/')
comment.comment = '<iframe src="http://mapknitter.org/embed/sattelite-imagery" style="border:0;"></iframe>'
comment.comment = '<iframe src="https://mapknitter.org/embed/sattelite-imagery" style="border:0;"></iframe>'
comment.save
node = nodes(:one).path.split('/')

get :show, params: { id: node[4], author: node[2], date: node[3] }

assert_select 'iframe[src=?]', 'http://mapknitter.org/embed/sattelite-imagery'
assert_select 'iframe[src=?]', 'https://mapknitter.org/embed/sattelite-imagery'
end

# test "should mark admins and moderators with a special icon" do
Expand Down

0 comments on commit fb7055b

Please sign in to comment.