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