tomato_power 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ module TomatoPower
26
26
  else
27
27
  payload << Movie.new(json)
28
28
  end
29
- payload << "No Results" if payload.length < 1
29
+ payload << "" if payload.length < 1
30
30
  payload
31
31
  end
32
32
 
@@ -11,6 +11,5 @@ module TomatoPower
11
11
  @quote = review["quote"]
12
12
  @links = review["links"]
13
13
  end
14
-
15
14
  end
16
15
  end
@@ -1,3 +1,3 @@
1
1
  module TomatoPower
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -91,10 +91,10 @@ module TomatoPower
91
91
  end
92
92
  end
93
93
  describe "no results" do
94
- it "should return error string if no results are found" do
94
+ it "should return empty string if no results are found" do
95
95
  reviews = @api.movie_reviews({:movie_id => 1})
96
96
  reviews.should be_kind_of(Array)
97
- reviews[0].include?('No Results').should be_true
97
+ reviews[0].should be_empty
98
98
  end
99
99
  end
100
100
  end
@@ -46,7 +46,7 @@ module TomatoPower
46
46
  describe "No results" do
47
47
  it "should return payload with no results string" do
48
48
  payload = Parser::parse @no_results
49
- payload.first.include?("No Results").should be_true
49
+ payload.first.should be_empty
50
50
  end
51
51
  end
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomato_power
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: