Sha256: fd8b24814eea0e99b30fc527548ce56adc759dc59f14d45d95e7490ffc84dc42

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

require_relative "../spec_helper"

describe MPFI, "when converting to string" do
  it "should return string created by inspect" do
    s = MPFI(['1.2', '1.3']).inspect
    s.should be_an_instance_of String
  end

  it "should return an array of strings" do
    a = MPFI(['1.2', '1.3']).to_str_ary
    a.should be_an_instance_of Array
    a.size.should == 2
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-mpfi-0.0.10 spec/mpfi/string_spec.rb
ruby-mpfi-0.0.9 spec/mpfi/string_spec.rb
ruby-mpfi-0.0.8 spec/mpfi/string_spec.rb