Sha256: 0068e9ae178fd7d472ebb3267a46b65b52f12f27733c66e665b5afe96984a763

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

require 'spec_helper'

module Prosperity
  describe Graph, type: :model do
    describe "#valid?" do
      it { is_expected.to allow_value('line').for(:graph_type) }
      it { is_expected.to allow_value('area').for(:graph_type) }
      it { is_expected.not_to allow_value('whatever').for(:graph_type) }
      it { is_expected.not_to allow_value(nil).for(:graph_type) }
      it { is_expected.not_to allow_value("").for(:graph_type) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prosperity-0.0.10 spec/models/prosperity/graph_spec.rb