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