Sha256: dc9335d06617ff4e80d198b49b8752eab3c84b5287947b4e9dd0c6a243b511d9
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require "spec_helper" describe "Section pages" do subject {page} let(:user) { Factory(:user) } before do visit adminpanel.signin_path valid_signin(user) end describe "index" do let(:section) { Factory(:section_with_gallery) } before do visit adminpanel.sections_path end it { should have_link("i", adminpanel.section_path(section)) } it { should have_link("i", adminpanel.edit_section_path(section)) } end describe "show" do describe "with gallery" do let(:section) { Factory(:section_with_gallery) } let(:image) { Factory(:image_section, :foreign_key => section.id) } # let(:image2) { Factory(:image_section, :foreign_key => section.id) } # let(:image3) { Factory(:image_section, :foreign_key => section.id) } before do visit adminpanel.section_path(section) image.file = image.file it { should have_title(section.name.humanize) } it { should have_content(section.description) } it { should have_link("i", adminpanel.edit_section_path(section)) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-0.1.0 | spec/features/section_pages_spec.rb |