Sha256: f4a2a02daa11c6be47a58f541e4f4075c6d505e5d8dc619da00d2ab3babdf095

Contents?: true

Size: 591 Bytes

Versions: 250

Compression:

Stored size: 591 Bytes

Contents

require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper'

describe <%= class_name %>Controller do

<% if actions.empty? -%>
  #Delete this example and add some real ones
<% else -%>
  #Delete these examples and add some real ones
<% end -%>
  it "should use <%= class_name %>Controller" do
    controller.should be_an_instance_of(<%= class_name %>Controller)
  end

<% unless actions.empty? -%>
<% for action in actions -%>

  it "GET '<%= action %>' should be successful" do
    get '<%= action %>'
    response.should be_success
  end
<% end -%>
<% end -%>
end

Version data entries

250 entries across 250 versions & 10 rubygems

Version Path
trusty-cms-6.3.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-7.0.2 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-7.0.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-7.0.0 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.3 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.2.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.2.2.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.2.0 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.1.2 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.1.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.0.5 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.0.4 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.0.3 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.0.2 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.0.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.6.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-6.0.0 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.6.0 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.5.9 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.5.8 lib/generators/extension_controller/templates/controller_spec.rb