Sha256: 13698ecfd38b1e392d8a53a0bb3bd9651f326f2627f63f677e9c65cbccd2c6dd

Contents?: true

Size: 332 Bytes

Versions: 18

Compression:

Stored size: 332 Bytes

Contents

require 'spec_helper'

describe <%= class_name %> do
  before(:each) do
    @valid_attributes = {
      <%= attributes.map{|a| ":#{a.name_or_reference} => #{a.default_value}" }.join(",\n      ") %>
    }
  end

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

Version data entries

18 entries across 18 versions & 7 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-rails-1.3.4/generators/rspec_model/templates/model_spec.rb
richzhou-rspec-rails-1.3.4 generators/rspec_model/templates/model_spec.rb
rspec-rails-1.3.4 generators/rspec_model/templates/model_spec.rb
rspec-rails-1.3.3 generators/rspec_model/templates/model_spec.rb
rspec-rails-1.3.3.rc generators/rspec_model/templates/model_spec.rb
exception2db-0.0.1 test/rspec-rails/generators/rspec_model/templates/model_spec.rb
rspec-rails-w-factory_girl-1.3.2 generators/rspec_model/templates/model_spec.rb
rspec_rails3_gen-0.2.2 lib/generators/rspec/model/templates/model_spec.rb
rspec_rails3_gen-0.2.0 lib/generators/rspec/model/templates/model_spec.rb
rspec-rails-1.3.2 generators/rspec_model/templates/model_spec.rb
rspec-rails-1.3.1 generators/rspec_model/templates/model_spec.rb
rspec-rails-1.3.0 generators/rspec_model/templates/model_spec.rb
hubbub-0.0.11 lib/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
hubbub-0.0.10 lib/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
hubbub-0.0.9 lib/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
hubbub-0.0.8 lib/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
hubbub-0.0.6 lib/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
rspec-rails-1.2.9 generators/rspec_model/templates/model_spec.rb