oxford_learners_dictionaries 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,4 +128,15 @@ describe OxfordLearnersDictionaries::English do
128
128
  end
129
129
  end
130
130
  end
131
+
132
+ describe 'when the word is not found' do
133
+ before :each do
134
+ stub_request(:any, url).to_raise(OpenURI::HTTPError.new('', nil))
135
+ end
136
+ let(:word) { 'asdf' }
137
+
138
+ it 'returns nil' do
139
+ expect(dictionary.look_up).to be_nil
140
+ end
141
+ end
131
142
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxford_learners_dictionaries
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Pelizaro Gentil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-15 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.19'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.10.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.10.1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: nokogiri
85
99
  requirement: !ruby/object:Gem::Requirement