Sha256: 619275882faf39d91fda4bd59afee0adf239ba35c4315d03a3745482f2be03d2

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe 'Cms/Pages' do
  sign_in_cms_admin

  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

4 entries across 4 versions & 1 rubygems

Version Path
kuhsaft-1.0.3 spec/features/cms_pages_spec.rb
kuhsaft-1.0.2 spec/features/cms_pages_spec.rb
kuhsaft-1.0.1 spec/features/cms_pages_spec.rb
kuhsaft-1.0.0 spec/features/cms_pages_spec.rb