morse_spec_helpers 2.0.1 → 2.1.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
  SHA1:
3
- metadata.gz: 69c1f8ca84bbb0809eb938b9baa21805fe18024f
4
- data.tar.gz: 53140a8b4783a488d4f06ed1ab74d1ff80794395
3
+ metadata.gz: 5226b22cbe0fe37dedac9c63f9a9c30dbb53c833
4
+ data.tar.gz: 8c06a01729d2eb7e4b32e8360a9ade8f9b76298b
5
5
  SHA512:
6
- metadata.gz: a3b7e44a5b9340cb321a86230edbeafd4f70b6fd8a758da94fc9a6e5e1a1b430ab3b7ef271dd7f39ddc9a900fdb5554649000677a54f73712b89d897718fe0c6
7
- data.tar.gz: 979307585c59de143d556c9390c2288ea89ed664a55ef2b07ccfac3e337553a01258dca1e83e8686024ee09c8a87b9e068ed4811de051438f427931859dd2427
6
+ metadata.gz: 58553b682788e5e9c130b45d36040b0fbea65c51a9672871590570786d738c0bfd33da1fb9c9ac6e9c124a369eadd7ba641f1222ad683449ff05ff4a5cd0938d
7
+ data.tar.gz: 87989464fe2c983fc59f537633eb6b9700b98a4db7898b232576f8181eeb3497dbee86cc977d5f16500dfc8dcdac4996f764720b9a068ef6ca8ced2746927404
@@ -1,3 +1,3 @@
1
1
  module MorseSpecHelpers
2
- VERSION = "2.0.1"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -6,6 +6,22 @@ end
6
6
 
7
7
  module MorseSpecHelpers
8
8
 
9
+ def acts_as_a_list
10
+ describe 'acts_as_list' do
11
+ describe 'given a blank position on save' do
12
+ before do
13
+ @instance.should be_valid
14
+ setup_variables('position')
15
+ end
16
+ it 'should add itself to the list' do
17
+ @instance.position = nil
18
+ @instance.save
19
+ @instance.position.should_not be_nil
20
+ end
21
+ end
22
+ end
23
+ end
24
+
9
25
  def boolean_default_false(method)
10
26
  exists(method)
11
27
  it "should default to false" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.5.1
81
+ rubygems_version: 2.6.3
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: A series of helpers to make the rspec experience nicer.