lib/carrierwave/test/matchers.rb in carrierwave-0.5.8 vs lib/carrierwave/test/matchers.rb in carrierwave-0.6.0

- old
+ new

@@ -46,15 +46,15 @@ # Satisfy expectation here. Return false or raise an error if it's not met. (File.stat(@actual.path).mode & 0777) == @expected end def failure_message - "expected #{@actual.inspect} to have permissions #{@expected.to_s(8)}, but they were #{(File.stat(@actual.path).mode & 0777).to_s(8)}" + "expected #{@actual.current_path.inspect} to have permissions #{@expected.to_s(8)}, but they were #{(File.stat(@actual.path).mode & 0777).to_s(8)}" end def negative_failure_message - "expected #{@actual.inspect} not to have permissions #{@expected.to_s(8)}, but it did" + "expected #{@actual.current_path.inspect} not to have permissions #{@expected.to_s(8)}, but it did" end def description "have permissions #{@expected.to_s(8)}" end @@ -180,10 +180,10 @@ def description "have a height less than or equal to #{@height}" end end - def be_no_height_than(height) + def be_no_taller_than(height) BeNoTallerThan.new(height) end class ImageLoader # :nodoc: def self.load_image(filename)