Sha256: 23e36d098487ea889fb2cc57a25122d3bab0280f898ccd88c66b865457cd367f
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
require 'spec_helper' module Prosperity describe Graph, type: :model do describe "#valid?" do it { should allow_value('line').for(:graph_type) } it { should allow_value('area').for(:graph_type) } it { should_not allow_value('whatever').for(:graph_type) } it { should_not allow_value(nil).for(:graph_type) } it { should_not allow_value("").for(:graph_type) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.11 | spec/models/prosperity/graph_spec.rb |