Cleanup
This commit is contained in:
parent
72a431a5e4
commit
b4725a10f6
@ -18,3 +18,7 @@ Style/TrailingBlankLines:
|
||||
Style/HashSyntax:
|
||||
Enabled: true
|
||||
|
||||
# String interpolations should have spaces. e.g. "#{ good }", "#{bad}"
|
||||
Style/SpaceInsideStringInterpolation:
|
||||
EnforcedStyle: space
|
||||
|
||||
|
@ -1 +1 @@
|
||||
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => "#{request.scheme}://#{request.host_with_port}/projects/demo/wiki/Wiki" %></p>
|
||||
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => "#{ request.scheme }://#{ request.host_with_port }/projects/demo/wiki/Wiki" %></p>
|
||||
|
@ -1 +1 @@
|
||||
<p><%= form.text_field :landing_page, :size => 60, :placeholder => "#{request.scheme}://#{request.host_with_port}/projects/demo/wiki/Wiki" %></p>
|
||||
<p><%= form.text_field :landing_page, :size => 60, :placeholder => "#{ request.scheme }://#{ request.host_with_port }/projects/demo/wiki/Wiki" %></p>
|
||||
|
@ -1 +1 @@
|
||||
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => "#{request.scheme}://#{request.host_with_port}/projects/demo/wiki/Wiki" %></p>
|
||||
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => "#{ request.scheme }://#{ request.host_with_port }/projects/demo/wiki/Wiki" %></p>
|
||||
|
@ -17,8 +17,8 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
|
||||
def test_redirect_to_landing_page
|
||||
@project = Project.generate!(identifier: 'demo',
|
||||
landing_page: "http://#{@request.host}/projects/demo/news")
|
||||
landing_page: "http://#{ @request.host }/projects/demo/news")
|
||||
get :show, id: @project.identifier
|
||||
assert_redirected_to "http://#{@request.host}/projects/#{@project.identifier}/news"
|
||||
assert_redirected_to "http://#{ @request.host }/projects/#{ @project.identifier }/news"
|
||||
end
|
||||
end
|
||||
|
@ -15,9 +15,9 @@ class WelcomeControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_redirect_to_landing_page
|
||||
@user = User.generate!(landing_page: "http://#{@request.host}/projects")
|
||||
@user = User.generate!(landing_page: "http://#{ @request.host }/projects")
|
||||
@request.session[:user_id] = @user.id
|
||||
get :index
|
||||
assert_redirected_to "http://#{@request.host}/projects"
|
||||
assert_redirected_to "http://#{ @request.host }/projects"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user