锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产中文v高清在线观看,亚洲国产成a人v在线,亚洲国产视频久久http://m.tkk7.com/huaoguo/category/43062.htmlmy wayzh-cnFri, 11 Dec 2009 18:14:32 GMTFri, 11 Dec 2009 18:14:32 GMT60璁㏑spec鏀寔涓枃http://m.tkk7.com/huaoguo/archive/2009/12/12/305670.htmlhuaoguohuaoguoFri, 11 Dec 2009 17:47:00 GMThttp://m.tkk7.com/huaoguo/archive/2009/12/12/305670.htmlhttp://m.tkk7.com/huaoguo/comments/305670.htmlhttp://m.tkk7.com/huaoguo/archive/2009/12/12/305670.html#Feedback0http://m.tkk7.com/huaoguo/comments/commentRss/305670.htmlhttp://m.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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲一区在线观看视频| 在线观看亚洲av每日更新| 久久99亚洲网美利坚合众国| a级毛片免费全部播放| 国产AV无码专区亚洲A∨毛片| 国产免费牲交视频免费播放| 亚洲日韩人妻第一页| 九一在线完整视频免费观看| 亚洲一区二区高清| 两个人看的www高清免费观看| 亚洲愉拍99热成人精品热久久| 久久国产一片免费观看| 精品亚洲综合在线第一区| 亚洲视频在线免费看| 激情内射亚洲一区二区三区爱妻| 天天看片天天爽_免费播放| 在线视频亚洲一区| 黑人大战亚洲人精品一区| 最近免费字幕中文大全| 97亚洲熟妇自偷自拍另类图片| 永久免费视频网站在线观看| 亚洲狠狠成人综合网| 四虎永久在线精品视频免费观看| 一级毛片大全免费播放下载| 亚洲va国产va天堂va久久| 免费v片在线观看视频网站| 欧美激情综合亚洲一二区| 国产精品亚洲αv天堂无码| 一级毛片**不卡免费播| 亚洲中文字幕一二三四区| 亚洲视频在线免费| 久久99国产综合精品免费| 亚洲av无码专区在线电影天堂| 亚洲综合在线另类色区奇米| 在线看片免费人成视久网| 亚洲大尺度无码无码专线一区| 国产日产亚洲系列| 黄色片在线免费观看| 国产在线观看xxxx免费| 亚洲av日韩av无码av| 亚洲午夜久久久影院|