Sha256: 0eb63ee2034e8d4eed91f030ef7422d1b5087dde84f4a26dbb2809b6e4e3821e
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
require 'spec_helper' module Prosperity describe Graph 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.9 | spec/models/prosperity/graph_spec.rb |
prosperity-0.0.8 | spec/models/prosperity/graph_spec.rb |
prosperity-0.0.7 | spec/models/prosperity/graph_spec.rb |