Sha256: d915e1c77dc0d1b712b50852058f97c25b66072ac60849ac365792747201587f
Contents?: true
Size: 568 Bytes
Versions: 26
Compression:
Stored size: 568 Bytes
Contents
require "spec_helper" describe DataMapper::Parse::Conditions::Regex do let(:regex) { described_class.new value } describe "#options" do subject { regex.options } context "when case insensitive option is on" do let(:value) { /bbq/i } it { should eq("i") } end context "when multiline option is on" do let(:value) { /bbq/m } it { should eq("m") } end context "when both case insensitive and multiline option is on" do let(:value) { /bbq/mi } it { should eq("im") } end end # #regex_options end
Version data entries
26 entries across 26 versions & 1 rubygems