Sha256: 28ed873dd1b1627cd43ef6ccaef60823f9815d38a87998a6b7899b24d9a39d2c
Contents?: true
Size: 454 Bytes
Versions: 3
Compression:
Stored size: 454 Bytes
Contents
require 'spec_helper' describe Adminpanel::Gallery do before do @gallery = Adminpanel::Gallery.new( :file => "Test file" ) end subject { @gallery } it { should respond_to(:file) } describe "when file is not present" do before {@gallery.file = " "} it {should_not be_valid} end describe "default scope" do it { expect(Adminpanel::Gallery.all.to_sql).to eq Adminpanel::Gallery.reorder('').order('position ASC').to_sql} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-2.1.0 | spec/models/gallery_spec.rb |
adminpanel-2.0.1 | spec/models/gallery_spec.rb |
adminpanel-2.0.0 | spec/models/gallery_spec.rb |