Sha256: 80b0083931425bc992f73cc63e704816192faf122266f0888a7ab227d729f773
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 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") "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
content_spinning-0.2.0 | spec/content_spinning/core_ext/string_spec.rb |
content_spinning-0.1.0 | spec/content_spinning/core_ext/string_spec.rb |