Class: RiotCarrierwave::IdenticalToAssertion

Inherits:
Riot::AssertionMacro
  • Object
show all
Defined in:
lib/riot-carrierwave/identical_to.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(model, file) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/riot-carrierwave/identical_to.rb', line 5

def evaluate(model, file)
  if model and FileUtils.identical?(model.path,file)
    pass("#{model.path} is identical to #{file}")
  else
    fail("expected #{model.path} to be identical to #{file}")
  end
end