Exclude haml-lint

This commit is contained in:
nasia 2017-08-28 22:10:08 +03:00
parent 819d55366c
commit 9d2d1c0e5a
5 changed files with 19 additions and 15 deletions

View file

@ -89,8 +89,12 @@ linters:
- "app/views/admin/schedules/show.html.haml" - "app/views/admin/schedules/show.html.haml"
- "app/views/admin/splashpages/_form.html.haml" - "app/views/admin/splashpages/_form.html.haml"
- "app/views/admin/splashpages/show.html.haml" - "app/views/admin/splashpages/show.html.haml"
- "app/views/admin/sponsors/_form.html.haml" - "app/views/admin/sponsors/_carrier_fields.html.haml"
- "pp/views/admin/sponsors/_swag_fields.html.haml"
- "app/views/admin/sponsors/edit.html.haml"
- "app/views/admin/sponsors/index.html.haml" - "app/views/admin/sponsors/index.html.haml"
- "app/views/admin/sponsors/new.html.haml"
- "app/views/admin/sponsors/show.html.haml"
- "app/views/admin/sponsorship_levels/_form.html.haml" - "app/views/admin/sponsorship_levels/_form.html.haml"
- "app/views/admin/sponsorship_levels/index.html.haml" - "app/views/admin/sponsorship_levels/index.html.haml"
- "app/views/admin/targets/_form.html.haml" - "app/views/admin/targets/_form.html.haml"
@ -365,6 +369,7 @@ linters:
- "app/views/admin/emails/index.html.haml" - "app/views/admin/emails/index.html.haml"
- "app/views/admin/events/show.html.haml" - "app/views/admin/events/show.html.haml"
- "app/views/admin/reports/index.html.haml" - "app/views/admin/reports/index.html.haml"
- "app/views/admin/sponsors/index.html.haml"
- "app/views/admin/users/show.html.haml" - "app/views/admin/users/show.html.haml"
- "app/views/admin/venues/_form.html.haml" - "app/views/admin/venues/_form.html.haml"
- "app/views/conferences/index.html.haml" - "app/views/conferences/index.html.haml"

View file

@ -20,7 +20,7 @@
- if @conference.sponsors.confirmed.any? - if @conference.sponsors.confirmed.any?
.row .row
.col-md-12 .col-md-12
%table.table.table-hover#sponsorship %table.table.table-hover
%thead %thead
%th Logo %th Logo
%th Name %th Name
@ -62,7 +62,7 @@
- if @conference.sponsors.confirmed.any? - if @conference.sponsors.confirmed.any?
.row .row
.col-md-12 .col-md-12
%table.table.table-hover#swags %table.table.table-hover
%thead %thead
%th Logo %th Logo
%th Name %th Name
@ -123,7 +123,7 @@
- if @conference.sponsors.unconfirmed.any? - if @conference.sponsors.unconfirmed.any?
.row .row
.col-md-12 .col-md-12
%table.table.table-hover#unconfirmed %table.table.table-hover#sponsors
%thead %thead
%th Logo %th Logo
%th Name %th Name

View file

@ -2,7 +2,6 @@
.col-md-12 .col-md-12
.page-header .page-header
%h1 %h1
-if @sponsor.new_record?
New New
Sponsor Sponsor
= @sponsor.name = @sponsor.name

View file

@ -27,7 +27,7 @@ feature Sponsor do
expect(flash).to eq('Sponsor successfully created.') expect(flash).to eq('Sponsor successfully created.')
click_link 'Unconfirmed' click_link 'Unconfirmed'
within('table#unconfirmed') do within('table#sponsors') do
expect(page.has_content?('SUSE')).to be true expect(page.has_content?('SUSE')).to be true
expect(page.has_content?('The original provider')).to be true expect(page.has_content?('The original provider')).to be true
expect(page.has_content?('http://www.suse.com')).to be true expect(page.has_content?('http://www.suse.com')).to be true