Sha256: 1ac3678d76e4652bcc3820fa6f2eda1b7a224e014c2cd34417796b38cd10a6d8

Contents?: true

Size: 661 Bytes

Versions: 9

Compression:

Stored size: 661 Bytes

Contents

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

describe "/<%= table_name %>/show.<%= default_file_extension %>" do
  include <%= controller_class_name %>Helper
  
  before(:each) do
    @<%= file_name %> = Factory(:<%= file_name %>)

    assigns[:<%= file_name %>] = @<%= file_name %>

    template.stub!(:edit_object_url).and_return(edit_<%= file_name %>_path(@<%= file_name %>)) 
    template.stub!(:collection_url).and_return(<%= file_name.pluralize %>_path) 
  end

  it "should render attributes in <p>" do
    render "/<%= table_name %>/show.<%= default_file_extension %>"
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
Objective3-objective_spec-0.0.2 generators/objective_resource/templates/rspec/views/show_spec.rb
Objective3-objective_spec-0.0.3 generators/objective_resource/templates/rspec/views/show_spec.rb
Objective3-objective_spec-0.0.4 generators/objective_resource/templates/rspec/views/show_spec.rb
Objective3-objective_spec-0.1.2 generators/objective_resource/templates/rspec/views/show_spec.rb
Objective3-objective_spec-0.1.3 generators/objective_resource/templates/rspec/views/show_spec.rb
Objective3-objective_spec-0.1.4 generators/objective_resource/templates/rspec/views/show_spec.rb
objective_spec-0.3.1 generators/objective_resource/templates/rspec/views/show_spec.rb
objective_spec-0.3.0 generators/objective_resource/templates/rspec/views/show_spec.rb
objective_spec-0.2.0 generators/objective_resource/templates/rspec/views/show_spec.rb