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 +4 -4
- data/lib/morse_spec_helpers/version.rb +1 -1
- data/lib/morse_spec_helpers.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5226b22cbe0fe37dedac9c63f9a9c30dbb53c833
|
4
|
+
data.tar.gz: 8c06a01729d2eb7e4b32e8360a9ade8f9b76298b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58553b682788e5e9c130b45d36040b0fbea65c51a9672871590570786d738c0bfd33da1fb9c9ac6e9c124a369eadd7ba641f1222ad683449ff05ff4a5cd0938d
|
7
|
+
data.tar.gz: 87989464fe2c983fc59f537633eb6b9700b98a4db7898b232576f8181eeb3497dbee86cc977d5f16500dfc8dcdac4996f764720b9a068ef6ca8ced2746927404
|
data/lib/morse_spec_helpers.rb
CHANGED
@@ -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
|
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-
|
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.
|
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.
|