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-5.5.7 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.5.6 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.5.5.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.5.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.5 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.4.4 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.4.3 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.4.2 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.4.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.4.0 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.9 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.8 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.7 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.6 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.5 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.4 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.3 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.2 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3.1 lib/generators/extension_controller/templates/controller_spec.rb
trusty-cms-5.3 lib/generators/extension_controller/templates/controller_spec.rb