spec/etsy4r/favorite_commands_spec.rb in tcocca-etsy4r-0.1.0 vs spec/etsy4r/favorite_commands_spec.rb in tcocca-etsy4r-0.2.0

- old
+ new

@@ -29,9 +29,25 @@ @res.results.should_not be_nil @res.error_message.should be_blank end end + describe 'get_favorers_of_shop' do + it 'should return users who favor the shop' do + @res = @favorite_commands.get_favorers_of_shop(5565464) + @res.should be_success + @res.results.should_not be_nil + @res.error_message.should be_blank + end + + it 'should accept the optional params' do + @res = @favorite_commands.get_favorers_of_shop(5565464, :detail_level => 'high', :limit => 5, :offset => 5) + @res.should be_success + @res.results.should_not be_nil + @res.error_message.should be_blank + end + end + describe 'get_favorers_of_listing' do it 'should return users who favor the user' do @res = @favorite_commands.get_favorers_of_listing(19749826) @res.should be_success @res.results.should_not be_nil