test harness is back, and pages fixed after refactor

This commit is contained in:
2022-12-08 17:16:29 +02:00
parent a8aa16170a
commit 308b9e1d2e
22 changed files with 257 additions and 23 deletions

View File

@ -0,0 +1,17 @@
require 'rails_helper'
module Merged
RSpec.describe Option, type: :model do
let(:first) {Option.options.values.first}
it "has Option.options" do
expect(Option.options.class).to be Hash
end
it "there are options" do
expect(Option.options.length).to be 12
end
it "has option objects" do
expect(first.class).to be Option
end
end
end