Sha256: 5ce952364258056dacd93ce37f0e9f4bb7a5d92a911d1b0967c2ed23c6ed07b4

Contents?: true

Size: 354 Bytes

Versions: 4

Compression:

Stored size: 354 Bytes

Contents

require 'spec_helper'

describe "<%= class_name.pluralize %>" do
  describe "GET /<%= table_name %>" do
    before :each do
      <% if child_model? %>
      <%=parent_class%>.stub(:find).with(anything()) {john_q :<%=parent_name%>}
      <% end %>
    end
    it "works! (now write some real specs)" do
      get <%= table_name %>_path
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
my_generators-0.0.4 lib/generators/my_spec/integration/templates/request_spec.rb
my_generators-0.0.3 lib/generators/my_spec/integration/templates/request_spec.rb
my_generators-0.0.2 lib/generators/my_spec/integration/templates/request_spec.rb
my_generators-0.0.1 lib/generators/my_spec/integration/templates/request_spec.rb