mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Run rails upgrade task
next bundle exec rails app:update
This commit is contained in:
parent
a017848ace
commit
7c1d3ce1c4
28 changed files with 395 additions and 284 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue