Sha256: 4e4444b5c8f34a2a9e5ccffc7f3be213d63c708c4c1be396742bd74e35c54862

Contents?: true

Size: 510 Bytes

Versions: 83

Compression:

Stored size: 510 Bytes

Contents

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

describe <%= class_name %> do
  before(:each) do
    @valid_attributes = {
<% attributes.each_with_index do |attribute, attribute_index| -%>
      :<%= attribute.name %> => <%= attribute.default_value %><%= attribute_index == attributes.length - 1 ? '' : ','%>
<% end -%>
    }
  end

  it "should create a new instance given valid attributes" do
    <%= class_name %>.create!(@valid_attributes)
  end
end

Version data entries

83 entries across 83 versions & 13 rubygems

Version Path
Pr0d1r2-geokit-1.3.2.2 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-1.3.2.3 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-1.3.2.4 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-1.3.2.5 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-1.3.2.6 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-1.3.2.7 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-1.4.1 generators/geokit_cached/templates/model_spec.rb
Pr0d1r2-geokit-cached-0.1.1 generators/geokit_cached/templates/model_spec.rb
cavalle-rspec-rails-1.2.2.0.1 generators/rspec_model/templates/model_spec.rb
cavalle-rspec-rails-1.2.2.0.2 generators/rspec_model/templates/model_spec.rb
cavalle-rspec-rails-1.2.3.1 generators/rspec_model/templates/model_spec.rb
cavalle-rspec-rails-1.2.4.0.1 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.10 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.1 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.2 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.3 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.4 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.5 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.6 generators/rspec_model/templates/model_spec.rb
dchelimsky-rspec-rails-1.1.11.7 generators/rspec_model/templates/model_spec.rb