Run rails upgrade task

next bundle exec rails app:update
This commit is contained in:
Henne Vogelsang 2021-08-17 14:58:06 +02:00
parent a017848ace
commit 7c1d3ce1c4
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
28 changed files with 395 additions and 284 deletions

View file

@ -37,9 +37,7 @@ describe TicketPurchase do
let(:registration_ticket) { create(:registration_ticket) }
let(:ticket_purchase) { build(:ticket_purchase, ticket: registration_ticket, quantity: 1) }
it 'it is valid, if quantity for registration tickets is less than or equal to one' do
expect(ticket_purchase.valid?).to eq true
end
it { is_expected.to validate_numericality_of(:quantity) }
it 'it is not valid, if quantity for registration tickets is greater than to one' do
ticket_purchase.quantity = 4

View file

@ -91,11 +91,11 @@ RSpec.configure do |config|
# Includes helpers and connect them to specific types of tests
config.include FactoryBot::Syntax::Methods
config.include OmniauthMacros
config.include Devise::TestHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :controller
config.include LoginMacros, type: :feature
config.include Flash, type: :feature
config.include Sidebar, type: :view
config.include Devise::TestHelpers, type: :view
config.include Devise::Test::ControllerHelpers, type: :view
# As we start from scratch in April 2014, let's forbid the old :should syntax
config.expect_with :rspec do |c|