Sha256: a41a82be3f835bf103ac3fcdde36fcfa1408cd4d8e154dd78c62b6c2a2e2474e
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe String do describe "#spin" do it "is defined" do expect("").to respond_to(:spin) end it "calls the spin function of ContentSpinning module with the string in argument" do expect(ContentSpinning).to receive(:spin).with("AaBb", limit: nil) "AaBb".spin end it "does not modify the source string" do source = "{a|b}" expect { source.spin }.not_to change { source } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
content_spinning-0.3.1 | spec/content_spinning/core_ext/string_spec.rb |