diff options
author | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
---|---|---|
committer | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
commit | 56d7747f54e86993415b76c92e101608e5ea44e2 (patch) | |
tree | 025b7b37f50c4c291e7e676286e7767c40adb1f9 /spec/models/refinery | |
download | refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.gz refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.bz2 refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.zip |
initial commit
Diffstat (limited to 'spec/models/refinery')
-rw-r--r-- | spec/models/refinery/banners/banner_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/models/refinery/banners/banner_spec.rb b/spec/models/refinery/banners/banner_spec.rb new file mode 100644 index 0000000..6e3c3b6 --- /dev/null +++ b/spec/models/refinery/banners/banner_spec.rb @@ -0,0 +1,18 @@ +require 'spec_helper' + +module Refinery + module Banners + describe Banner do + describe "validations" do + subject do + FactoryGirl.create(:banner, + :name => "Refinery CMS") + end + + it { should be_valid } + its(:errors) { should be_empty } + its(:name) { should == "Refinery CMS" } + end + end + end +end |