Sha256: 13016be8d20627d6544af3fc2d19c6b4421edbbc3f70178a6cc0425179da461c
Contents?: true
Size: 804 Bytes
Versions: 5
Compression:
Stored size: 804 Bytes
Contents
require 'spec_helper' describe CarouselSlide do before(:each) do @slide_attr = { :sequence => 1, :object_pid => 'bpl-dev:123456', :image_pid => 'bpl-dev:7891011', :size => '570,', :region => '250,90,295,570', :title => 'The Slide Title', :institution => 'Institution Name', :context => 'bpl-dev:0022331' } end it 'should create a new slide given valid attributes' do CarouselSlide.create!(@slide_attr) end describe 'assign values properly' do before(:each) do @slide = CarouselSlide.create!(@slide_attr) end it 'should have a title attribute' do expect(@slide).to respond_to(:title) end it 'should have the right title' do expect(@slide.title).to eq('The Slide Title') end end end
Version data entries
5 entries across 5 versions & 1 rubygems