test harness is back, and pages fixed after refactor
This commit is contained in:
17
spec/models/merged/option_spec.rb
Normal file
17
spec/models/merged/option_spec.rb
Normal 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
|
Reference in New Issue
Block a user