Sha256: d4e81e292a0e9c875c793f1b52c4733541b429df1b98592b0a9230dded8a3f35
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
require 'rails_helper' module Quizzes RSpec.describe Level, type: :model do it { should validate_presence_of(:name) } it { should validate_presence_of(:code) } it { should validate_presence_of(:number_of_questions) } context "#all_and_nil" do it "returns an array with all levels and nil" do expect(Level.all_and_nil).to match_array(Level.all.to_a + [nil]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quizzes-0.1.1 | spec/models/quizzes/level_spec.rb |
quizzes-0.1.0 | spec/models/quizzes/level_spec.rb |