conference: refactor code and tests
This commit is contained in:
parent
53291e25b5
commit
fe828d24db
2 changed files with 2 additions and 2 deletions
|
|
@ -1588,7 +1588,7 @@ describe Conference do
|
|||
let!(:conference) { create(:conference) }
|
||||
|
||||
it 'creates free tickets' do
|
||||
free_ticket = Ticket.find_by(conference: conference)
|
||||
free_ticket = conference.tickets.first
|
||||
expect(free_ticket).not_to be_nil
|
||||
expect(free_ticket.price_cents).to eq(0)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue