Flowdock
method

be_an_instance_of

Importance_1
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Matchers
be_an_instance_of(expected) public

Passes if actual.instance_of?(expected)

Examples

  5.should be_instance_of(Fixnum)
  5.should_not be_instance_of(Numeric)
  5.should_not be_instance_of(Float)
Show source
Register or log in to add new notes.