Sha256: 798180045b33f9978b4fa2bd9b3340a4f5a3983004202bcd8cb8e175d65de9c9

Contents?: true

Size: 427 Bytes

Versions: 11

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::PagesController do
  render_views
  
  before do
    set_lang :en
    # create page with slug=english-title
    @page = Factory.create :page
  end
  
  after do
    Kuhsaft::Page.all.each { |p| p.destroy }
    reset_lang
  end
  
  describe 'should render successfully' do
    it '#show' do
      get :show, :url => '/en/english-title'
      response.should be_success
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kuhsaft-0.2.legacy4 spec/controllers/pages_controller_spec.rb
kuhsaft-0.2.legacy3 spec/controllers/pages_controller_spec.rb
kuhsaft-0.2.legacy2 spec/controllers/pages_controller_spec.rb
kuhsaft-0.2.legacy spec/controllers/pages_controller_spec.rb
kuhsaft-0.2 spec/controllers/pages_controller_spec.rb
kuhsaft-0.1.1 spec/controllers/pages_controller_spec.rb
kuhsaft-0.1.0 spec/controllers/pages_controller_spec.rb
kuhsaft-0.0.8 spec/controllers/pages_controller_spec.rb
kuhsaft-0.0.7 spec/controllers/pages_controller_spec.rb
kuhsaft-0.0.6 spec/controllers/pages_controller_spec.rb
kuhsaft-0.0.5 spec/controllers/pages_controller_spec.rb