Sha256: 14dfb677c712a7c2cee0de72de6d086f45b1ab645289caed50b886ea050014f8

Contents?: true

Size: 345 Bytes

Versions: 37

Compression:

Stored size: 345 Bytes

Contents

describe Card::Set::Abstract::Utility do
  describe "#params_to_i" do
    subject do
      Card["A"].with_set(described_class).param_to_i "offset", 0
    end

    it "returns value from params" do
      Card::Env.params["offset"] = "5"
      is_expected.to eq(5)
    end

    it "returns default" do
      is_expected.to eq(0)
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
card-1.100.0 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.6 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.5 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.4 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.3 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.2 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.1 mod/utility/spec/set/abstract/utility_spec.rb
card-1.99.0 mod/utility/spec/set/abstract/utility_spec.rb
card-1.98.3 mod/utility/spec/set/abstract/utility_spec.rb
card-1.98.2 mod/utility/spec/set/abstract/utility_spec.rb
card-1.98.1 mod/utility/spec/set/abstract/utility_spec.rb
card-1.98.0 mod/utility/spec/set/abstract/utility_spec.rb
card-1.97.0.1 mod/utility/spec/set/abstract/utility_spec.rb
card-1.97.0 mod/utility/spec/set/abstract/utility_spec.rb
card-1.96.8 mod/utility/spec/set/abstract/utility_spec.rb
card-1.96.7 mod/utility/spec/set/abstract/utility_spec.rb
card-1.96.6 mod/utility/spec/set/abstract/utility_spec.rb
card-1.96.5 mod/utility/spec/set/abstract/utility_spec.rb
card-1.96.4 mod/utility/spec/set/abstract/utility_spec.rb
card-1.96.3 mod/utility/spec/set/abstract/utility_spec.rb