Sha256: 0addb76dc10ea0b19e1d98a933cda25453972791859d2cd099cc30ecbfb931a9
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
require 'rails_helper' module Quizzes RSpec.describe GameFactory, type: :model do it "creates a game for a user" do create_questions_in_sequence(20) game = GameFactory.new({ user: create(:user), level: create(:level), number_of_questions: 20 }).generate expect(game.game_questions.size).to eq(20) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quizzes-0.1.1 | spec/models/quizzes/game_factory_spec.rb |
quizzes-0.1.0 | spec/models/quizzes/game_factory_spec.rb |