morse_spec_helpers 3.0.0 → 4.0.0

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
  SHA256:
3
- metadata.gz: deaf3d896ac2563850d122c4b51ed5f781c6530826d72b02cb82a26367c93412
4
- data.tar.gz: 7e68ff8fe7eedfcf60c1b05c9ecc6e34394733fed2d148412787e230a4680178
3
+ metadata.gz: fa07527b04b67abba2f572990256ab4550515af784311356c1d3de595135e615
4
+ data.tar.gz: 39074b39b56a8dda662306626379694783674a1f9a72475b8fc8238915ba1db2
5
5
  SHA512:
6
- metadata.gz: '0945010a8d1c7ddfbe41aa303b96f463a96d06bb1ec930d2859bc18cf43ef378ba263a735e35ce072242aed7b20d5f7d2f46130136babf9fa2adbba0a9303298'
7
- data.tar.gz: 586dea4316d73be2f3360c239a989841d1399fc832952757f6d70a1850865dc085a5ff419f6614ac921df2373f96138c40cafbc2ad8c4689797c939ea943bc0f
6
+ metadata.gz: 1a8e9222ff8cf1743f3a1ab12f972d343588865be1de347b6cd0c667d3967cb2239ce20ecd86c0dcf76c2ffb63536008631e9d300680e73809b744adef58e3de
7
+ data.tar.gz: a3c64b746bb8e45d67c59cb93007a1647eb2cfb50c6c792f0c4f104b5d9456263211f31fd04fce6fe9f227529d26fcb178046d46107333788c4db6bd7e3d6482
@@ -632,8 +632,12 @@ module MorseSpecHelpers
632
632
  end
633
633
  end
634
634
 
635
+ def view_allow_variable(variable_name, value = '')
636
+ allow(view).to receive(variable_name).and_return value
637
+ end
638
+
635
639
  def view_allow_simple_form_for(thing, f=:f)
636
- form=SimpleForm::FormBuilder.new(thing.class, thing, self, {})
640
+ form=SimpleForm::FormBuilder.new(thing.class.name, thing, self, {})
637
641
  allow(view).to receive(f).and_return(form)
638
642
  end
639
643
  end
@@ -1,3 +1,3 @@
1
1
  module MorseSpecHelpers
2
- VERSION = "3.0.0"
2
+ VERSION = "4.0.0"
3
3
  end
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.6"
21
+ spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
23
23
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2021-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +62,7 @@ homepage: ''
62
62
  licenses:
63
63
  - MIT
64
64
  metadata: {}
65
- post_install_message:
65
+ post_install_message:
66
66
  rdoc_options: []
67
67
  require_paths:
68
68
  - lib
@@ -77,8 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.0.1
81
- signing_key:
80
+ rubygems_version: 3.1.4
81
+ signing_key:
82
82
  specification_version: 4
83
83
  summary: A series of helpers to make the rspec experience nicer.
84
84
  test_files: []