spec/eucalyptus/resource_spec.rb in eucalyptus-1.0.0 vs spec/eucalyptus/resource_spec.rb in eucalyptus-1.1.0

- old
+ new

@@ -35,11 +35,11 @@ end it 'accepts extra fields' do graph = double(:graph) expect(graph).to receive(:get_object) - .with(123, {fields: [:custom_field, :name, :description]}) + .with(123, {fields: [:custom_field] + Eucalyptus::CustomAudience.known_fields}) .and_return([]) Eucalyptus::CustomAudience.find(123, graph: graph, fields: [:custom_field]) end end @@ -74,22 +74,22 @@ end it 'accepts custom fields' do graph = double(:graph) expect(graph).to receive(:get_connection) - .with(123, "customaudiences", {fields: [:custom_field, :name, :description]}) + .with(123, "customaudiences", {fields: [:custom_field] + Eucalyptus::CustomAudience.known_fields}) .and_return([]) Eucalyptus::CustomAudience.all(graph: graph, parent: parent, options: {fields: [:custom_field]}) end it 'accepts any time of option' do graph = double(:graph) expect(graph).to receive(:get_connection) - .with(123, "customaudiences", {action_breakdowns: [:custom_field], fields: [:name, :description]}) + .with(123, "customaudiences", {action_breakdowns: [:custom_field], fields: Eucalyptus::CustomAudience.known_fields}) .and_return([]) - Eucalyptus::CustomAudience.all(graph: graph, parent: parent, options: {action_breakdowns: [:custom_field]}) + Eucalyptus::CustomAudience.all(graph: graph, parent: parent, options: {action_breakdowns: [:ustom_field]}) end end end describe '#update' do