Sha256: e60d319cf7692a21f9012b7ef8a36d4b921b85beb485fd0bee27a03ac78d8378

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

describe ChatWork::Converter do
  include ChatWork::Converter

  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

10 entries across 10 versions & 1 rubygems

Version Path
chatwork-1.0.1 spec/lib/chatwork/converter_spec.rb
chatwork-1.0.0 spec/lib/chatwork/converter_spec.rb
chatwork-0.12.3 spec/lib/chatwork/converter_spec.rb
chatwork-0.12.2 spec/lib/chatwork/converter_spec.rb
chatwork-0.12.1 spec/lib/chatwork/converter_spec.rb
chatwork-0.12.0 spec/lib/chatwork/converter_spec.rb
chatwork-0.11.0 spec/lib/chatwork/converter_spec.rb
chatwork-0.10.0 spec/lib/chatwork/converter_spec.rb
chatwork-0.9.0 spec/lib/chatwork/converter_spec.rb
chatwork-0.8.0 spec/lib/chatwork/converter_spec.rb