enumerative 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- shared_examples_for 'an Enumeration' do
3
+ RSpec.shared_examples_for 'an Enumeration' do
4
4
 
5
5
  describe 'an instance' do
6
6
 
@@ -15,11 +15,11 @@ shared_examples_for 'an Enumeration' do
15
15
  end
16
16
 
17
17
  it 'should have the expected #key' do
18
- instance.key.should == 'foo'
18
+ expect( instance.key ).to eq('foo')
19
19
  end
20
20
 
21
21
  it 'should have an immutable #key' do
22
- instance.should_not respond_to( :key= )
22
+ expect( instance ).not_to respond_to( :key= )
23
23
 
24
24
  expect {
25
25
  instance.key.gsub!( /./, 'x' )
@@ -27,11 +27,11 @@ shared_examples_for 'an Enumeration' do
27
27
  end
28
28
 
29
29
  it 'should equal an equivalent instance' do
30
- instance.should == described_class.new( 'foo' )
30
+ expect( instance).to eq(described_class.new( 'foo' ))
31
31
  end
32
32
 
33
33
  it 'should have the expected string representation' do
34
- instance.to_s.should == 'foo'
34
+ expect( instance.to_s ).to eq('foo')
35
35
  end
36
36
 
37
37
  describe 'that is valid' do
@@ -41,7 +41,7 @@ shared_examples_for 'an Enumeration' do
41
41
  it { should be_valid }
42
42
 
43
43
  it 'should have a #value' do
44
- subject.value.should_not == nil
44
+ expect( subject.value ).not_to be(nil)
45
45
  end
46
46
 
47
47
  end
@@ -53,7 +53,7 @@ shared_examples_for 'an Enumeration' do
53
53
  it { should_not be_valid }
54
54
 
55
55
  it 'should not have a #value' do
56
- subject.value.should == nil
56
+ expect( subject.value ).to be(nil)
57
57
  end
58
58
 
59
59
  end
@@ -1,5 +1,5 @@
1
1
  module Enumerative
2
2
 
3
- VERSION = "1.6.0"
3
+ VERSION = "1.8.0"
4
4
 
5
5
  end
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.6.0
4
+ version: 1.8.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: 2014-06-20 00:00:00.000000000 Z
13
+ date: 2014-10-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport