enumerative 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,12 @@ shared_examples_for 'an Enumeration' do
|
|
8
8
|
described_class.new 'foo'
|
9
9
|
end
|
10
10
|
|
11
|
+
let :immutable_error do
|
12
|
+
RUBY_VERSION > "1.9.2" ?
|
13
|
+
"can't modify frozen string" :
|
14
|
+
"can't modify frozen String"
|
15
|
+
end
|
16
|
+
|
11
17
|
it 'should have the expected #key' do
|
12
18
|
instance.key.should == 'foo'
|
13
19
|
end
|
@@ -17,7 +23,7 @@ shared_examples_for 'an Enumeration' do
|
|
17
23
|
|
18
24
|
expect {
|
19
25
|
instance.key.gsub!( /./, 'x' )
|
20
|
-
}.to raise_error( RuntimeError,
|
26
|
+
}.to raise_error( RuntimeError, immutable_error )
|
21
27
|
end
|
22
28
|
|
23
29
|
it 'should equal an equivalent instance' do
|
data/lib/enumerative/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumerative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Tools for defining and using enumerations.
|
16
16
|
email:
|