briandunn-a2ws 0.1.10 → 0.1.11
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.
- data/a2ws.gemspec +1 -1
- data/lib/a2ws/item_search.rb +1 -1
- data/spec/a2ws_spec.rb +6 -1
- data/spec/spec_helper.rb +3 -1
- metadata +1 -1
data/a2ws.gemspec
CHANGED
data/lib/a2ws/item_search.rb
CHANGED
data/spec/a2ws_spec.rb
CHANGED
|
@@ -7,10 +7,15 @@ describe "A2WS Operations" do
|
|
|
7
7
|
describe ItemSearch do
|
|
8
8
|
|
|
9
9
|
it "should survive a search that returns a single result" do
|
|
10
|
-
ItemSearch.should_receive(:get).and_return(
|
|
10
|
+
ItemSearch.should_receive(:get).and_return(fixture :single_item_response)
|
|
11
11
|
ItemSearch.find('not used')
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
it "should return an empty array when there aint no results" do
|
|
15
|
+
ItemSearch.should_receive(:get).and_return(fixture :empty_response)
|
|
16
|
+
ItemSearch.find( "not used" ).should == []
|
|
17
|
+
end
|
|
18
|
+
|
|
14
19
|
end
|
|
15
20
|
|
|
16
21
|
end
|
data/spec/spec_helper.rb
CHANGED