Sha256: e41eed8a24360c68ceb096db18d9f3d95ccb98c9aa27db52f8792483f3ee15e5
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 Bytes
Contents
vrequire 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} => #{a.default.inspect}" }.join(",\n ") %> } end it "should create a new instance given valid attributes" do <%= class_name %>.create!(@valid_attributes) end end
Version data entries
4 entries across 4 versions & 1 rubygems