Sha256: 66446613e8cb95d2903351009e2907ac8552fedadfddb3e050db9d2e62604f30

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../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

10 entries across 10 versions & 3 rubygems

Version Path
Objective3-objective_spec-0.0.3 generators/objective_model/templates/model_spec.rb
Objective3-objective_spec-0.0.4 generators/objective_model/templates/model_spec.rb
Objective3-objective_spec-0.1.2 generators/objective_model/templates/model_spec.rb
Objective3-objective_spec-0.1.3 generators/objective_model/templates/model_spec.rb
Objective3-objective_spec-0.1.4 generators/objective_model/templates/model_spec.rb
objective_spec-0.3.1 generators/objective_model/templates/model_spec.rb
objective_spec-0.3.0 generators/objective_model/templates/model_spec.rb
objective_spec-0.2.0 generators/objective_model/templates/model_spec.rb
rspec-rails-1.2.7 generators/rspec_model/templates/model_spec.rb
rspec-rails-1.2.7.1 generators/rspec_model/templates/model_spec.rb