OSDN Git Service

fix test
[pettanr/pettanr.git] / spec / manifests / scroll_spec.rb
diff --git a/spec/manifests/scroll_spec.rb b/spec/manifests/scroll_spec.rb
new file mode 100644 (file)
index 0000000..1e18386
--- /dev/null
@@ -0,0 +1,45 @@
+# -*- encoding: utf-8 -*-
+require 'spec_helper'
+#スクロールマニフェスト
+
+describe Scroll do
+  before do
+  end
+  
+  describe 'ペタナイズに於いて' do
+    context 'オーソドックスなデータのとき' do
+      it 'スクコマを閉じるためのバインダーである' do
+        expect(@item.is_a?(Peta::Binder)).to be true
+      end
+      it 'ブースト特筆すべき注意事項はない' do
+        expect(self.class.my_peta.boost.keys).to be true
+      end
+    end
+    
+  end
+  
+  describe 'コントローラに於いて' do
+    describe 'actionに於いて' do
+      it 'スクコマを閉じるためのバインダーである' do
+        expect(@item.is_a?(Peta::Binder)).to be true
+      end
+      it 'ブースト特筆すべき注意事項はない' do
+        expect(self.class.my_peta.boost.keys).to be true
+      end
+    end
+    
+  end
+  
+  describe 'モデルに於いて' do
+    context 'オーソドックスなデータのとき' do
+      it 'スクコマを閉じるためのバインダーである' do
+        expect(@item.is_a?(Peta::Binder)).to be true
+      end
+      it 'ブースト特筆すべき注意事項はない' do
+        expect(self.class.my_peta.boost.keys).to be true
+      end
+    end
+    
+  end
+  
+end