require "rails_helper" RSpec.describe ::<%= module_camel %>::<%= resource_camel %>, '.username', :type => :model do describe "Attributes" do it "does not save when attribute is nil" do #<%= resource_singular %> = FactoryGirl.build(:<%= module_snake %>_<%= resource_singular %>, :attribute => nil) #expect(<%= resource_singular %>.save).to equal(false) end <% attributes.each do |pair| %> it "does not save when <%= pair.split(":")[0] %> is ..." do #expect(<%= resource_singular %>.save).to equal(false) end <% end %> end end RSpec.describe ::<%= module_camel %>::<%= resource_camel %>, :type => :model do describe "Dependencies" do before(:example) do @<%= resource_singular %> = FactoryGirl.create(:<%= module_snake %>_<%= resource_singular %>) end it "deletes ... when deleted" do end end end RSpec.describe ::<%= module_camel %>::<%= resource_camel %>, :type => :model do describe "Callbacks" do before(:example) do @<%= resource_singular %> = FactoryGirl.create(:<%= module_snake %>_<%= resource_singular %>) end it "creates a ..." do #expect(object.posts.nil?).to equal(false) end end end