????Cucumber?????

??????????????????????????浵???????????????????????Cucumber??????????????????????

Feature??archive old record 

  As a admin 

  I want to archive old records 

  So that I can keep my current records list small and clean 

  

  Scenario: archive old record 

    Given 1 record "A" with date "2011-03-07"

    And 1 record "B" with date "2011-03-17"

    When I run "old record archive"

    Then system should move record "A" into archive forlder 
 


?????????????裬??Given 1 record "A" with date "2011-03-07"????д??????ruby?????磺

/Given 1 record "" with date ""/ do |id?? date| 

  create_record("id"=>id?? "date"=>date) 

  #?????create_record??????2?Σ?????β?????A?? 2011-03-07??????β?????B??2011-03-17 

end

  

/When I run ""/ do |cmd| 

  system(cmd) 

  #?????system?????????????old record archive 

end

  

/Then system should move record "" into archive folder/ do |record| 

  search_record_in_archive_folder(record).should == true

  #?????search_record_in_archive_folder???????record???A" 

end