Sha256: 373e7ed062a55cf59b3439b56006c7a2c5f298dc83329a3ec98553f27d187f21
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
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.0 | spec/content_spinning/core_ext/string_spec.rb |