OSDN Git Service

add controller songs_controller
[praisedb/praisedb.git] / spec / models / song_spec.rb
diff --git a/spec/models/song_spec.rb b/spec/models/song_spec.rb
new file mode 100644 (file)
index 0000000..27a9eb8
--- /dev/null
@@ -0,0 +1,19 @@
+require 'spec_helper'
+
+describe Song do
+  before(:each) do
+    @valid_attributes = {
+      :code => "value for code",
+      :title => "value for title",
+      :words => "value for words",
+      :kana => "value for kana",
+      :cright => "value for cright",
+      :font_size => 1,
+      :deleted_at => Time.now
+    }
+  end
+
+  it "should create a new instance given valid attributes" do
+    Song.create!(@valid_attributes)
+  end
+end