Fix commercial option for users in dashboard#show #1390
This commit is contained in:
parent
be33f345a1
commit
a6e8283bcf
2 changed files with 2 additions and 3 deletions
|
|
@ -7,7 +7,6 @@ module Admin
|
||||||
@commercials = @conference.commercials
|
@commercials = @conference.commercials
|
||||||
|
|
||||||
@commercial = @conference.commercials.build
|
@commercial = @conference.commercials.build
|
||||||
authorize! :create, @conference.commercials.new
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ feature 'Has correct abilities' do
|
||||||
expect(current_path).to eq(root_path)
|
expect(current_path).to eq(root_path)
|
||||||
|
|
||||||
visit admin_conference_commercials_path(conference2.short_title)
|
visit admin_conference_commercials_path(conference2.short_title)
|
||||||
expect(current_path).to eq(root_path)
|
expect(current_path).to eq(admin_conference_commercials_path(conference2.short_title))
|
||||||
|
|
||||||
visit new_admin_conference_splashpage_path(conference2.short_title)
|
visit new_admin_conference_splashpage_path(conference2.short_title)
|
||||||
expect(current_path).to eq(root_path)
|
expect(current_path).to eq(root_path)
|
||||||
|
|
@ -496,7 +496,7 @@ feature 'Has correct abilities' do
|
||||||
expect(current_path).to eq(root_path)
|
expect(current_path).to eq(root_path)
|
||||||
|
|
||||||
visit admin_conference_commercials_path(conference3.short_title)
|
visit admin_conference_commercials_path(conference3.short_title)
|
||||||
expect(current_path).to eq(root_path)
|
expect(current_path).to eq(admin_conference_commercials_path(conference3.short_title))
|
||||||
|
|
||||||
visit new_admin_conference_splashpage_path(conference3.short_title)
|
visit new_admin_conference_splashpage_path(conference3.short_title)
|
||||||
expect(current_path).to eq(root_path)
|
expect(current_path).to eq(root_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue