Sha256: 90fe5bcac8680566e231fdbebcd0e9d16582f1940130389897e4d443e9ac8126

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

module TruncatoMacros
  def it_should_truncate(example_description, options)
    it "should truncate #{example_description}" do
      expected_options = Truncato::DEFAULT_OPTIONS.merge(options[:with])
      Truncato.truncate(options[:source], expected_options).should == options[:expected]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
truncato-0.7.5 spec/support/spec_helpers/truncato_macros.rb
truncato-0.7.4 spec/support/spec_helpers/truncato_macros.rb
truncato-0.7.3 spec/support/spec_helpers/truncato_macros.rb
truncato-0.7.2 spec/support/spec_helpers/truncato_macros.rb
truncato-0.7.1 spec/support/spec_helpers/truncato_macros.rb
truncato-0.7.0 spec/support/spec_helpers/truncato_macros.rb