Sha256: 42a97e811de65f02a01f3b54c20d835b719420c4c1b251d375d4b6b8fa5d4928

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

describe ChatWork::EntityMethods do
  include ChatWork::EntityMethods

  describe "#boolean_to_integer" do
    subject { boolean_to_integer(value) }

    using RSpec::Parameterized::TableSyntax

    where(:value, :expected) do
      false | 0
      true  | 1
      0     | 0
      1     | 1
      nil   | nil
    end

    with_them do
      it { should eq expected }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chatwork-0.7.0 spec/lib/chatwork/entity_methods_spec.rb
chatwork-0.6.2 spec/lib/chatwork/entity_methods_spec.rb
chatwork-0.6.1 spec/lib/chatwork/entity_methods_spec.rb
chatwork-0.6.0 spec/lib/chatwork/entity_methods_spec.rb