Sha256: 02724c3dcb5f0cdccb873d7bd79473e0fca0aae49c17e7ad261cc495e06a4bc0

Contents?: true

Size: 471 Bytes

Versions: 24

Compression:

Stored size: 471 Bytes

Contents

# encoding: utf-8

require_relative "../spec_helper.rb"

describe <%= @name.camel_case %> do
  include <%= @name.camel_case %>
  <% @models.each do |model| %>
  describe <%= model.camel_case %> do
    before(:each) do
      @<%= model %> = <%= model.camel_case %>.new
    end

    it "should have a title" do
      @<%= model %>.should respond_to(:title)
    end

    it "should have a slug" do
      @<%= model %>.should respond_to(:slug)
    end
  end

  <% end %>
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rango-0.2.6 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.2.5.1 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.2.4.1 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.2.3 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.2.1 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.2.1.pre stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.2 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.3 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.11 stubs/stack/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.10 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.9 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.8 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.7 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.6 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.5 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.4 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.3 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.2 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.1.1.2.1 stubs/project/content/spec/%name%/models_spec.rb.rbt
rango-0.2.pre stubs/stack/content/spec/%name%/models_spec.rb.rbt