Class: RSpec::Fixtures::Animal

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/expectations/differ_spec.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, species) ⇒ Animal

Returns a new instance of Animal.



7
8
9
# File 'lib/rspec/expectations/differ_spec.rb', line 7

def initialize(name,species)
  @name,@species = name,species
end

Instance Method Details

#inspectObject



11
12
13
14
15
16
17
18
# File 'lib/rspec/expectations/differ_spec.rb', line 11

def inspect
  <<-EOA
<Animal
  name=#{@name},
  species=#{@species}
>
  EOA
end