OSDN Git Service

remove useless examples
authorokimoto <okimoto@good-day.co.jp>
Tue, 9 Mar 2010 07:08:57 +0000 (16:08 +0900)
committerokimoto <okimoto@good-day.co.jp>
Tue, 9 Mar 2010 07:08:57 +0000 (16:08 +0900)
spec/models/ordinary_arithmetic_edit_form_spec.rb

index f5d0bed..c15f3dc 100644 (file)
@@ -99,14 +99,6 @@ describe OrdinaryArithmeticEditForm do
         }
         it{ should be_valid }
       end
-      context "min = max = nil, empty" do
-        subject{
-          @basic.min = nil
-          @basic.max = ""
-          @basic
-        }
-        it{ should_not be_valid }
-      end
     end
 
     context "operators" do
@@ -134,19 +126,6 @@ describe OrdinaryArithmeticEditForm do
     }
   end
 
-  context "attributes_for_model" do
-    subject{ @basic.attributes_for_model }
-    it{
-      should == {
-        :unit_id => 1,
-        :level   => 1,
-        :amount  => 2,
-        :options => @basic.options_hash.to_json,
-        :lock_version => 0
-      }
-    }
-  end
-
   context "set_options" do
     context "basic" do
       subject{