File: coerced_predicate.rb

package info (click to toggle)
ruby-coercible 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: ruby: 1,734; makefile: 9
file content (13 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
shared_examples_for 'Coercible::Coercer#coerced?' do
  context "with a primitive value" do
    subject { object.coerced?(primitive_value) }

    it { should be(true) }
  end

  context "with a non-primitive value" do
    subject { object.coerced?(non_primitive_value) }

    it { should be(false) }
  end
end