锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产中文v高清在线观看,亚洲国产成a人v在线,亚洲国产视频久久http://www.tkk7.com/huaoguo/category/43062.htmlmy wayzh-cnFri, 11 Dec 2009 18:14:32 GMTFri, 11 Dec 2009 18:14:32 GMT60璁㏑spec鏀寔涓枃http://www.tkk7.com/huaoguo/archive/2009/12/12/305670.htmlhuaoguohuaoguoFri, 11 Dec 2009 17:47:00 GMThttp://www.tkk7.com/huaoguo/archive/2009/12/12/305670.htmlhttp://www.tkk7.com/huaoguo/comments/305670.htmlhttp://www.tkk7.com/huaoguo/archive/2009/12/12/305670.html#Feedback0http://www.tkk7.com/huaoguo/comments/commentRss/305670.htmlhttp://www.tkk7.com/huaoguo/services/trackbacks/305670.html
# author: Percival  date: 12/06/09
# Have a good day!


require 'clazz'

describe Clazz 
do
  before(
:eachdo
    
@clazz = Clazz.new
  end

  it 
"蹇呴』鑳藉瀛樺偍鍜岃緗被鍚?/span>" do

  end

  it 
"蹇呴』灝嗗畠瀹炵幇鐨勬帴鍙e瓨鍌ㄥ湪涓涓泦鍚堥噷" do

  end

  it 
"蹇呴』鏈変竴涓泦鍚堢敤鏉ュ瓨鍌ㄩ渶瑕佸鍏ョ殑綾?/span>" do

  end

  it 
"蹇呴』瀵瑰鎻愪緵鎷ユ湁鐨勬墍鏈夋柟娉曟帴鍙?/span>" do

  end

  it 
"蹇呴』鑳藉浠庝竴涓枃浠朵腑瀵煎叆綾諱俊鎭?/span>" do
    
  end

end

闇瑕佷慨鏀?lib/spec/example/example_proxy.rb涓猴細
require 'iconv' #璁ヾescribe鏀寔涓枃 鈥斺擯ercival

module Spec
  module Example
    
# Lightweight proxy for an example. This is the object that is passed to
    # example-related methods in Spec::Runner::Formatter::BaseFormatter

    class ExampleProxy

      def initialize(description
=nil, options={}, location=nil) # :nodoc:
        #璁ヾescribe鏀寔涓枃 鈥斺擯ercival

        description = Iconv.iconv("GBK","UTF-8",description)
        
@description, @options, @location = description, options, location
      end

      
# Optional hash passed to the example declaration
      attr_reader :options

      
# This is the docstring passed to the <tt>it()</tt> method or any
      # of its aliases

      attr_reader :description

      
# The file and line number at which the represented example
      # was declared. This is extracted from <tt>caller</tt>, and is therefore
      # formatted as an individual line in a backtrace.

      attr_reader :location

      
# Deprecated - use location()
      def backtrace
        Spec
.deprecate("ExampleProxy#backtrace","ExampleProxy#location")
        location
      end

      
# Convenience method for example group - updates the value of
      # <tt>description</tt> and returns self.

      def update(description) # :nodoc:
        @description = description
        self
      end

      def 
==(other) # :nodoc:
        (other.description == description) & (other.location == location)
      end
    end
  end
end

鐒跺悗璁﹕hould鍜宻hould_not鏀寔涓枃錛屼慨鏀筶ib\spec\expectations\handler.rb:
require 'iconv'

module Spec
  module Expectations
    class InvalidMatcherError 
< ArgumentError; end        
    
    class PositiveExpectationHandler        
      def self
.handle_matcher(actual, matcher, message=nil, &block)
        
#璁﹕hould鏀寔涓枃
        if(actual.instance_of? String)
          actual 
= Iconv.iconv("UTF-8","GBK",actual).first
        end
        
::Spec::Matchers.last_should = :should
        
::Spec::Matchers.last_matcher = matcher
        
return ::Spec::Matchers::PositiveOperatorMatcher.new(actual) if matcher.nil?

        match 
= matcher.matches?(actual, &block)
        
return match if match
        
        message 
||= matcher.respond_to?(:failure_message_for_should) ?
                    matcher
.failure_message_for_should :
                    matcher
.failure_message
        
        
if matcher.respond_to?(:diffable?&& matcher.diffable?
          
::Spec::Expectations.fail_with message, matcher.expected.first, matcher.actual
        
else
          
::Spec::Expectations.fail_with message
        end
      end
    end

    class NegativeExpectationHandler
      def self
.handle_matcher(actual, matcher, message=nil, &block)
        
#璁﹕hould鏀寔涓枃
        if(actual.instance_of? String)
          actual 
= Iconv.iconv("UTF-8","GBK",actual).first
        end
        
::Spec::Matchers.last_should = :should_not
        
::Spec::Matchers.last_matcher = matcher
        
return ::Spec::Matchers::NegativeOperatorMatcher.new(actual) if matcher.nil?
        
        match 
= matcher.respond_to?(:does_not_match??
                
!matcher.does_not_match?(actual, &block) :
                matcher
.matches?(actual, &block)
        
return match unless match
        
        message 
||= matcher.respond_to?(:failure_message_for_should_not) ?
                    matcher
.failure_message_for_should_not :
                    matcher
.negative_failure_message

        
if matcher.respond_to?(:diffable?&& matcher.diffable?
          
::Spec::Expectations.fail_with message, matcher.expected.first, matcher.actual
        
else
          
::Spec::Expectations.fail_with message
        end
      end
    end
  end
end

鏆傛椂鎴戝彧鐢ㄥ埌榪欎簺鍏冪礌錛屽彲鑳借繕涓嶅叏闈紝鏈夐亣鍒伴棶棰樼殑鍐嶅姞涓娿?br />

huaoguo 2009-12-12 01:47 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲色成人网站WWW永久四虎| 久久久亚洲裙底偷窥综合| 亚洲xxxxxx| 国产又黄又爽又猛免费app| 亚洲色图.com| 1000部拍拍拍18勿入免费凤凰福利| 亚洲va无码va在线va天堂| 三年片免费观看大全国语| 亚洲国产成人片在线观看无码| 老司机69精品成免费视频| 亚洲精品在线视频观看| 一个人免费观看在线视频www| 中中文字幕亚洲无线码| 日韩黄色免费观看| 免费在线观看亚洲| 国产亚洲精品福利在线无卡一| 日韩精品无码免费专区网站| 午夜亚洲www湿好大| 亚洲免费福利在线视频| 国产亚洲精品VA片在线播放| 日本久久久免费高清| 九九免费精品视频在这里| 亚洲av一综合av一区| 99在线精品免费视频九九视| 亚洲免费综合色在线视频| 国产免费av片在线无码免费看| 人成免费在线视频| 亚洲综合婷婷久久| 日韩一级免费视频| 2022国内精品免费福利视频| 亚洲经典在线观看| 日本免费人成黄页网观看视频| 精品国产污污免费网站入口在线 | 国产AV旡码专区亚洲AV苍井空| 日韩成人免费aa在线看| 好湿好大好紧好爽免费视频| 亚洲精品无码久久毛片波多野吉衣 | 亚洲视频一区二区三区| 免费看美女让人桶尿口| 三上悠亚在线观看免费| 国产成人精品日本亚洲网址|