Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test for audience list model

  • Loading branch information...
commit 1eeab8decf4e0d0883cd5b73af20d3a87bc1aed6 1 parent e59087b
@ayamomiji authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 test/client/mad_mimi/test_audience_list.rb
View
19 test/client/mad_mimi/test_audience_list.rb
@@ -0,0 +1,19 @@
+require 'rest-more/test'
+
+describe RestCore::MadMimi::AudienceList do
+ before do
+ @client = mock!
+ @list = RestCore::MadMimi::AudienceList.new(@client, :name => 'rc-test')
+ end
+
+ should 'destroy the list' do
+ mock(@client).destroy_audience_list('rc-test') { :delegated }
+ @list.destroy.should.eq(:delegated)
+ end
+
+ should 'rename the list' do
+ mock(@client).rename_audience_list('rc-test', 'renamed') { true }
+ @list.name = 'renamed'
+ @list.name.should.eq('renamed')
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.