OSDN Git Service

add test
[pettanr/pettanr.git] / spec / models / artist_spec.rb
index 4efbc73..c26f27f 100644 (file)
@@ -1,5 +1,19 @@
+# -*- encoding: utf-8 -*-
+#
 require 'spec_helper'
 
 describe Artist do
-  pending "add some examples to (or delete) #{__FILE__}"
+  before do
+    Factory :admin
+    @user = Factory( :user_yas)
+    @author = @user.author
+  end
+
+  describe '自動補充に於いて' do
+    it '名前がno nameになっている' do
+      @artist = Factory :artist
+      @artist.name.should eq 'no name'
+    end
+  end
+  
 end