Sha256: c32aa308cf285f1c125fa3cb8d3aa4ec402417e283610d112ca1cd6f2578432e
Contents?: true
Size: 1.05 KB
Versions: 48
Compression:
Stored size: 1.05 KB
Contents
require 'rails_helper' RSpec.describe '/de/backend/cms/navigation_items', type: :feature do let(:navigation) { create(:cmor_cms_navigation) } let(:resource_class) { Cmor::Cms::NavigationItem } let(:resource) { create(:cmor_cms_navigation_item) } let(:resources) { create_list(:cmor_cms_navigation_item, 3) } it { resources; expect(subject).to implement_index_action(self) } it { navigation expect(subject).to implement_create_action(self) .for(Cmor::Cms::NavigationItem) .within_form('#new_navigation_item') { select navigation.name, from: 'navigation_item[navigation_id]' fill_in 'navigation_item[name]', with: 'Impressum' fill_in 'navigation_item[url]', with: '/de/impressum' fill_in 'navigation_item[key]', with: 'imprint' } .increasing{ |resource| resource.count }.by(1) } it { expect(subject).to implement_show_action(self).for(resource) } it { expect(subject).to implement_delete_action(self) .for(resource) .reducing{ resource_class.count }.by(1) } end
Version data entries
48 entries across 48 versions & 1 rubygems