Sha256: f7940f409dd9a288678fd994d5b75281e3e5f215c0b3e63ea8ca2f13200523e4

Contents?: true

Size: 301 Bytes

Versions: 7

Compression:

Stored size: 301 Bytes

Contents

require File.join(File.dirname(__FILE__),'..','..','spec_helper')

describe "/<%= file_name %>" do
  before(:each) do
    @controller,@action = get("/<%= file_name %>")
    @body = @controller.body
  end

  it "should mention <%= class_name %>" do
    @body.should match(/<%= class_name %>/)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
merb-0.4.0 rspec_generators/merb_controller_test/templates/index_spec.rb
merb-0.4.2 rspec_generators/merb_controller_test/templates/index_spec.rb
merb-0.4.1 rspec_generators/merb_controller_test/templates/index_spec.rb
merb-0.5.0 rspec_generators/merb_controller_test/templates/index_spec.rb
merb-0.5.1 rspec_generators/merb_controller_test/templates/index_spec.rb
merb-0.5.2 rspec_generators/merb_controller_test/templates/index_spec.rb
merb-0.5.3 rspec_generators/merb_controller_test/templates/index_spec.rb