Sha256: f16110533c80f2999569ba756989f958940c36d4fa00881719f03bd2e3e00e90

Contents?: true

Size: 483 Bytes

Versions: 24

Compression:

Stored size: 483 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe 'Cms/Pages' do

  context '#new' do
    before do
      visit kuhsaft.new_cms_page_path
      fill_in 'Titel', :with => 'The Title of the page'
      fill_in 'Stichwörter', :with => 'My keywords'
      fill_in 'Beschreibung', :with => 'My Description'
    end

    describe '#create' do
      it 'creates a new page' do
        expect { click_on 'Create Seite' }.to change(Kuhsaft::Page, :count).by(1)
      end
    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
kuhsaft-1.2.1 spec/features/cms_pages_spec.rb
kuhsaft-1.2.0 spec/features/cms_pages_spec.rb
kuhsaft-1.1.1 spec/features/cms_pages_spec.rb
kuhsaft-1.1.0 spec/features/cms_pages_spec.rb