morse_spec_helpers 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afb72d77455d082efe2e292b4432f925545dd094
4
- data.tar.gz: 059f4e71c2a131cf3f28796af5e14583348ef623
3
+ metadata.gz: a318d32885e6d67acb2939059d512027c107789a
4
+ data.tar.gz: 24fcdc477cc0bb1db5f8365bff295dcc46010c1a
5
5
  SHA512:
6
- metadata.gz: 39aadcba194194a3fa8a778d1422f169766bfd67eb7a2a8b062e85657fb88519c678304c420ded1398f6372a40e3f7109970bd24079e5b4d01bd2f1c2aa1a52f
7
- data.tar.gz: 95dda0a0e34c35fc652c19a7c91976b3c27dbe4f98d401b5a609d338771278db357a8b48e72af4213ec14e2cb60efbd6478acbc5d51ad21521af4c3e30f744a1
6
+ metadata.gz: cdb0335935f82bd3e36cb0ef50c2acc091bfc580ce6be4a919c30680fed0170a3b1fbdb0541a0858f066d6e21893be2e23c29bf15092f39d0b9a56766defcb5f
7
+ data.tar.gz: b2486b8db013151b53d6fc8c41cbbb5626071f06f62fb531f0720a42909e0e82b3e69ef326faab5573685ad0b8d82f5bdbd9511d69b71baa2d37eeed8688bc2a
@@ -346,6 +346,21 @@ module MorseSpecHelpers
346
346
  end
347
347
  end
348
348
 
349
+ def optional_integer(method)
350
+ context "#{method} is an optional integer" do
351
+ exists(method)
352
+ it "should make a blank #{method} nil" do
353
+ @instance.send("#{method}=","")
354
+ expect(@instance).to be_valid
355
+ expect(@instance.send(method)).to be_nil
356
+ end
357
+ it "should accept a normal integer for #{method}" do
358
+ @instance.send("#{method}=",1)
359
+ expect(@instance).to be_valid
360
+ end
361
+ end
362
+ end
363
+
349
364
  def optional_time(method)
350
365
  context "#{method} is an optional time" do
351
366
  exists(method)
@@ -1,3 +1,3 @@
1
1
  module MorseSpecHelpers
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S