run rubocp --fix
This commit is contained in:
parent
1ca72dcf74
commit
2b2745ade9
26 changed files with 104 additions and 107 deletions
|
|
@ -69,8 +69,8 @@ describe Admin::TicketsController do
|
|||
it 'creates new ticket' do
|
||||
expect do
|
||||
post :create, params: {
|
||||
ticket: attributes_for(:ticket),
|
||||
conference_id: conference
|
||||
ticket: attributes_for(:ticket),
|
||||
conference_id: conference
|
||||
}
|
||||
end.to change{ conference.tickets.count }.from(ticket_count).to(ticket_count + 1)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ feature 'Has correct abilities' do
|
|||
other_user = create(:user)
|
||||
ticket = conference.registration_tickets.first
|
||||
create(:paid_ticket_purchase,
|
||||
user: other_user, ticket: ticket, quantity: 1, conference: conference)
|
||||
user: other_user, ticket: ticket, quantity: 1, conference: conference)
|
||||
create(:registration, user: other_user, conference: conference)
|
||||
visit edit_admin_conference_registration_path(conference.short_title, conference.registrations.first)
|
||||
expect(current_path).to eq(edit_admin_conference_registration_path(conference.short_title, conference.registrations.first))
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ feature 'Has correct abilities' do
|
|||
other_user = create(:user)
|
||||
ticket = conference.registration_tickets.first
|
||||
create(:paid_ticket_purchase,
|
||||
user: other_user, ticket: ticket, quantity: 1, conference: conference)
|
||||
user: other_user, ticket: ticket, quantity: 1, conference: conference)
|
||||
create(:registration, user: other_user, conference: conference)
|
||||
visit edit_admin_conference_registration_path(conference.short_title, conference.registrations.first)
|
||||
expect(current_path).to eq(edit_admin_conference_registration_path(conference.short_title, conference.registrations.first))
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ describe FormatHelper, type: :helper do
|
|||
expect(Redcarpet::Markdown).to receive(:new)
|
||||
.with(
|
||||
Redcarpet::Render::HTML,
|
||||
autolink: true,
|
||||
autolink: true,
|
||||
space_after_headers: true,
|
||||
tables: true,
|
||||
strikethrough: true,
|
||||
footnotes: true,
|
||||
superscript: true
|
||||
tables: true,
|
||||
strikethrough: true,
|
||||
footnotes: true,
|
||||
superscript: true
|
||||
)
|
||||
.and_call_original
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
#
|
||||
# index_conferences_on_organization_id (organization_id)
|
||||
#
|
||||
#!/bin/env ruby
|
||||
# !/bin/env ruby
|
||||
require 'spec_helper'
|
||||
|
||||
describe Conference do
|
||||
|
|
|
|||
|
|
@ -35,6 +35,6 @@ def mock_commercial_request
|
|||
end
|
||||
|
||||
def mock_image_request
|
||||
WebMock.stub_request(:post, "https://api.cloudinary.com/v1_1/snapcon/image/destroy").
|
||||
to_return(status: 200, body: {}.to_json, headers: {})
|
||||
WebMock.stub_request(:post, "https://api.cloudinary.com/v1_1/snapcon/image/destroy")
|
||||
.to_return(status: 200, body: {}.to_json, headers: {})
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ module OmniauthMacros
|
|||
ENV['OSEM_DISCOURSE_KEY'] = 'test key discourse'
|
||||
ENV['OSEM_DISCOURSE_SECRET'] = 'test secret discourse'
|
||||
|
||||
|
||||
|
||||
def mock_auth_new_user
|
||||
OmniAuth.config.mock_auth[:google] =
|
||||
OmniAuth::AuthHash.new(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue