Sha256: 909d92991f91bf7226acbd3cab009ef1e76c197c640808569ebc540ee688e0ec
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
require './operation_spec_helper' auth = $qihu_auth test_plan_id = 717479502 test_group_id = 1203987666 describe ::PPC::Operation::Account do subject{ ::PPC::Operation::Account.new( auth ) } it_should_behave_like( "object", {budget:2990}) it_should_behave_like( "object operator", 'plan', {name:'operation_test_plan'}, {name:'updated_operation_test_plan'}) it_should_behave_like( "object operator", 'group', {name:'test_operation_group',plan_id:test_plan_id, price:500}, {name:'updated_operation_test_group'} ) end describe ::PPC::Operation::Plan do # get test subject subject{ ::PPC::Operation::Plan.new( auth.merge({id:test_plan_id}) ) } it_should_behave_like( "object", {budget:2000}) it_should_behave_like( "object operator", 'group', {name:'test_operation_group', price:500}, {name:'updated_operation_test_group'} ) it_should_behave_like( "object parent", 'group') end describe ::PPC::Operation::Group do # get test subject subject{ ::PPC::Operation::Group.new( auth.merge({id:test_group_id}) ) } it_should_behave_like( "object", {price:200}) it_should_behave_like( "object operator", 'keyword', { keyword:'testKeyword', group_id:test_group_id, match_type:'exact'}, { match_type:'wide'}) it_should_behave_like( "object parent", 'keyword') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppc-0.3.0 | spec/operation/operation_qihu_spec.rb |