All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.coercible-1.0.0.spec.shared.unit.coerced_predicate.rb Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy