Sha256: 1064ade2e7652ca8ab8ae7bc841f7b199e694c562d341a109d842e9a48f18808
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
require './operation_spec_helper' auth = $sogou_auth preparation = ::PPC::API::Sogou::Group::ids( auth ) test_plan_id = preparation[:result][0][:plan_id] test_group_id = preparation[:result][0][:group_ids][0] ::PPC::API::Sogou.debug_on describe ::PPC::Operation::Account do subject{ ::PPC::Operation::Account.new( auth ) } it_should_behave_like( "object", {budget:2990}) it_should_behave_like( "object parent", 'plan') 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 parent", 'keyword') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ppc-0.3.0 | spec/operation/operation_sogou_spec.rb |