Sha256: 325903532f875861f9e2a2cc05f0c41ef0e5b56e4c66167dda295092b58b0d9b
Contents?: true
Size: 728 Bytes
Versions: 5
Compression:
Stored size: 728 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' require 'admin/themes_controller' # Re-raise errors caught by the controller. class Admin::ThemesController; def rescue_action(e) raise e end; end describe Admin::ThemesController, 'ported from the tests' do integrate_views before do request.session = { :user => users(:tobi).id } end # Replace this with your real tests. it "test_index" do get :index assert_response :success assert_not_nil assigns(:themes) end it "test_switchto" do get :switchto, :theme => 'typographic' assert_response :redirect, :action => 'index' end it "test_preview" do get :preview, :theme => 'typographic' assert_response :success end end
Version data entries
5 entries across 5 versions & 1 rubygems